pub struct Collection {
pub name: Option<String>,
pub durability: Option<Durability>,
pub environment: Option<String>,
pub allowed_offers: Option<AllowedOffers>,
pub allow_long_names: Option<bool>,
pub persistent_storage: Option<bool>,
}
Expand description
Statically declares a component instance collection.
Fields§
§name: Option<String>
§durability: Option<Durability>
§environment: Option<String>
§allowed_offers: Option<AllowedOffers>
§allow_long_names: Option<bool>
§persistent_storage: Option<bool>
Trait Implementations§
Source§impl Clone for Collection
impl Clone for Collection
Source§fn clone(&self) -> Collection
fn clone(&self) -> Collection
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 Collection
impl Debug for Collection
Source§impl Encodable for Collection
impl Encodable for Collection
Source§type Encoded = WireCollection
type Encoded = WireCollection
The wire type for the value.
§const COPY_OPTIMIZATION: CopyOptimization<Self> = _
const COPY_OPTIMIZATION: CopyOptimization<Self> = _
An optimization flag that allows the bytes of this type to be copied directly during
encoding instead of calling
encode
. Read moreSource§impl<___E> Encode<___E> for Collectionwhere
___E: Encoder + ?Sized,
impl<___E> Encode<___E> for Collectionwhere
___E: Encoder + ?Sized,
Source§impl TakeFrom<WireCollection> for Collection
impl TakeFrom<WireCollection> for Collection
Source§fn take_from(from: &WireCollection) -> Self
fn take_from(from: &WireCollection) -> Self
Converts from the given
T
, taking any resources that can’t be cloned.§const COPY_OPTIMIZATION: CopyOptimization<Self> = _
const COPY_OPTIMIZATION: CopyOptimization<Self> = _
An optimization flag that allows the bytes of this type to be copied directly during
conversion instead of calling
take_from
. Read moreAuto Trait Implementations§
impl Freeze for Collection
impl RefUnwindSafe for Collection
impl Send for Collection
impl Sync for Collection
impl Unpin for Collection
impl UnwindSafe for Collection
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