Struct zng_app::third_party::LICENSES
source · pub struct LICENSES;
Expand description
Third party licenses.
Implementations§
source§impl LICENSES
impl LICENSES
sourcepub fn licenses(&self) -> Vec<LicenseUsed>
pub fn licenses(&self) -> Vec<LicenseUsed>
Aggregates all registered third party licenses, grouped by license, sorted by name.
Exact licenses and users are deduplicated.
sourcepub fn view_process_licenses(&self) -> Vec<LicenseUsed>
pub fn view_process_licenses(&self) -> Vec<LicenseUsed>
Third party licenses provided by the view-process, grouped by license, sorted by name.
Returns an empty vec if there is no view-process running or the view-process does not provide any license.
sourcepub fn user_licenses(&self) -> Vec<UserLicense>
pub fn user_licenses(&self) -> Vec<UserLicense>
Aggregates all registered third party licenses, by user, sorted by name.
Exact licenses and users are deduplicated.
sourcepub fn view_process_user_licenses(&self) -> Vec<UserLicense>
pub fn view_process_user_licenses(&self) -> Vec<UserLicense>
Third party licenses provided by the view-process, by user, sorted by name.
Returns an empty vec if there is no view-process running or the view-process does not provide any license.
sourcepub fn include_view_process(&self) -> ArcVar<bool>
pub fn include_view_process(&self) -> ArcVar<bool>
If view-process provided third party licenses are included in licenses
.
Note that prebuilt view-process licenses may not be found by license scraper tools.
This is true
by default.
sourcepub fn register(&self, source: fn() -> Vec<LicenseUsed>)
pub fn register(&self, source: fn() -> Vec<LicenseUsed>)
Register a function that loads some third party licenses used by this app.
Auto Trait Implementations§
impl Freeze for LICENSES
impl RefUnwindSafe for LICENSES
impl Send for LICENSES
impl Sync for LICENSES
impl Unpin for LICENSES
impl UnwindSafe for LICENSES
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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>
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>
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