pub struct LicensePolicyConfig {
pub allow: Vec<String>,
pub deny: Vec<String>,
pub review: Vec<String>,
pub fail_on_conflict: bool,
}Expand description
License policy configuration
Fields§
§allow: Vec<String>Allowed license SPDX IDs (glob patterns supported: BSD-*)
deny: Vec<String>Denied license SPDX IDs (glob patterns supported: AGPL-*)
review: Vec<String>Licenses that require manual review
fail_on_conflict: boolFail on copyleft + proprietary conflicts in dependency tree
Implementations§
Source§impl LicensePolicyConfig
impl LicensePolicyConfig
Sourcepub fn permissive() -> Self
pub fn permissive() -> Self
Create a permissive policy that allows everything
Sourcepub fn strict_permissive() -> Self
pub fn strict_permissive() -> Self
Create a strict policy that only allows common permissive licenses
Trait Implementations§
Source§impl Clone for LicensePolicyConfig
impl Clone for LicensePolicyConfig
Source§fn clone(&self) -> LicensePolicyConfig
fn clone(&self) -> LicensePolicyConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 LicensePolicyConfig
impl Debug for LicensePolicyConfig
Source§impl Default for LicensePolicyConfig
impl Default for LicensePolicyConfig
Source§fn default() -> LicensePolicyConfig
fn default() -> LicensePolicyConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for LicensePolicyConfig
impl<'de> Deserialize<'de> for LicensePolicyConfig
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 LicensePolicyConfig
impl RefUnwindSafe for LicensePolicyConfig
impl Send for LicensePolicyConfig
impl Sync for LicensePolicyConfig
impl Unpin for LicensePolicyConfig
impl UnsafeUnpin for LicensePolicyConfig
impl UnwindSafe for LicensePolicyConfig
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more