#[non_exhaustive]pub struct CatalogSet {
pub kind: CatalogSetKind,
pub members: Vec<CatalogMember>,
}Expand description
One catalog set template: what kind of set it is and which members it declares.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.kind: CatalogSetKindWhether the set holds properties or quantities.
members: Vec<CatalogMember>The declared members, in catalog order.
Implementations§
Source§impl CatalogSet
impl CatalogSet
Sourcepub fn property(members: Vec<CatalogMember>) -> Self
pub fn property(members: Vec<CatalogMember>) -> Self
A property set declaring members.
Sourcepub fn quantity(members: Vec<CatalogMember>) -> Self
pub fn quantity(members: Vec<CatalogMember>) -> Self
A quantity set declaring members.
Trait Implementations§
Source§impl Clone for CatalogSet
impl Clone for CatalogSet
Source§fn clone(&self) -> CatalogSet
fn clone(&self) -> CatalogSet
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 CatalogSet
impl Debug for CatalogSet
impl Eq for CatalogSet
Source§impl PartialEq for CatalogSet
impl PartialEq for CatalogSet
impl StructuralPartialEq for CatalogSet
Auto Trait Implementations§
impl Freeze for CatalogSet
impl RefUnwindSafe for CatalogSet
impl Send for CatalogSet
impl Sync for CatalogSet
impl Unpin for CatalogSet
impl UnsafeUnpin for CatalogSet
impl UnwindSafe for CatalogSet
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