pub struct OfferStorage {
pub source_name: Option<String>,
pub source: Option<Ref>,
pub target: Option<Ref>,
pub target_name: Option<String>,
pub availability: Option<Availability>,
}
Expand description
Declares a storage capability offered by a component to one of its children, such as meta storage offered by the component’s containing realm or cache storage offered by the component itself.
Fields§
§source_name: Option<String>
§source: Option<Ref>
§target: Option<Ref>
§target_name: Option<String>
§availability: Option<Availability>
Trait Implementations§
Source§impl Clone for OfferStorage
impl Clone for OfferStorage
Source§fn clone(&self) -> OfferStorage
fn clone(&self) -> OfferStorage
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 OfferStorage
impl Debug for OfferStorage
Source§impl Encodable for OfferStorage
impl Encodable for OfferStorage
Source§type Encoded = WireOfferStorage
type Encoded = WireOfferStorage
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 OfferStoragewhere
___E: Encoder + ?Sized,
impl<___E> Encode<___E> for OfferStoragewhere
___E: Encoder + ?Sized,
Source§impl TakeFrom<WireOfferStorage> for OfferStorage
impl TakeFrom<WireOfferStorage> for OfferStorage
Source§fn take_from(from: &WireOfferStorage) -> Self
fn take_from(from: &WireOfferStorage) -> 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 OfferStorage
impl RefUnwindSafe for OfferStorage
impl Send for OfferStorage
impl Sync for OfferStorage
impl Unpin for OfferStorage
impl UnwindSafe for OfferStorage
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