pub struct CollectionProfile {
pub profile_name: String,
pub profile_version: String,
pub logs: Vec<LogCollectionItem>,
pub registry: Vec<RegistryCollectionItem>,
pub event_logs: Vec<EventLogCollectionItem>,
pub exports: Vec<FileExportItem>,
pub commands: Vec<CommandCollectionItem>,
}Fields§
§profile_name: String§profile_version: String§logs: Vec<LogCollectionItem>§registry: Vec<RegistryCollectionItem>§event_logs: Vec<EventLogCollectionItem>§exports: Vec<FileExportItem>§commands: Vec<CommandCollectionItem>Implementations§
Source§impl CollectionProfile
impl CollectionProfile
Sourcepub fn embedded() -> CollectionProfile
pub fn embedded() -> CollectionProfile
Load the embedded collection profile compiled into the binary.
Sourcepub fn total_items(&self) -> usize
pub fn total_items(&self) -> usize
Total number of individual collection items across all categories.
Sourcepub fn filter_by_families(&mut self, families: &[String])
pub fn filter_by_families(&mut self, families: &[String])
Filter all collection items to only those whose family is in the provided list.
Sourcepub fn artifact_ids(&self) -> impl Iterator<Item = &str>
pub fn artifact_ids(&self) -> impl Iterator<Item = &str>
IDs are a bundle-wide contract, so uniqueness spans every category.
pub fn has_unique_artifact_ids(&self) -> bool
Trait Implementations§
Source§impl Clone for CollectionProfile
impl Clone for CollectionProfile
Source§fn clone(&self) -> CollectionProfile
fn clone(&self) -> CollectionProfile
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 CollectionProfile
impl Debug for CollectionProfile
Source§impl<'de> Deserialize<'de> for CollectionProfile
impl<'de> Deserialize<'de> for CollectionProfile
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 CollectionProfile
impl RefUnwindSafe for CollectionProfile
impl Send for CollectionProfile
impl Sync for CollectionProfile
impl Unpin for CollectionProfile
impl UnsafeUnpin for CollectionProfile
impl UnwindSafe for CollectionProfile
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