Struct zng_tp_licenses::LicenseUsed
source · pub struct LicenseUsed {
pub license: License,
pub used_by: Vec<User>,
}
Expand description
Represents a license and dependencies that use it.
Fields§
§license: License
License name and text.
used_by: Vec<User>
Project or packages that use this license.
Implementations§
source§impl LicenseUsed
impl LicenseUsed
sourcepub fn user_licenses(&self) -> Vec<UserLicense>
pub fn user_licenses(&self) -> Vec<UserLicense>
Invert data to be keyed by user.
Trait Implementations§
source§impl Clone for LicenseUsed
impl Clone for LicenseUsed
source§fn clone(&self) -> LicenseUsed
fn clone(&self) -> LicenseUsed
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for LicenseUsed
impl Debug for LicenseUsed
source§impl<'de> Deserialize<'de> for LicenseUsed
impl<'de> Deserialize<'de> for LicenseUsed
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for LicenseUsed
impl RefUnwindSafe for LicenseUsed
impl Send for LicenseUsed
impl Sync for LicenseUsed
impl Unpin for LicenseUsed
impl UnwindSafe for LicenseUsed
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)