pub enum ComponentStatePayload {
Inline(Vec<u8>),
External(ExternalStateReference),
}Expand description
The bounded representation a component-state payload unambiguously is.
Never a silent third, unbounded form: a payload is either inline bytes
bounded by StateLimits, or a bounded external reference identified by
content identity.
Variants§
Inline(Vec<u8>)
Bounded inline payload bytes (an encoded JSON object).
External(ExternalStateReference)
A bounded external reference to out-of-band state.
Trait Implementations§
Source§impl Clone for ComponentStatePayload
impl Clone for ComponentStatePayload
Source§impl Debug for ComponentStatePayload
impl Debug for ComponentStatePayload
impl Eq for ComponentStatePayload
Source§impl PartialEq for ComponentStatePayload
impl PartialEq for ComponentStatePayload
impl StructuralPartialEq for ComponentStatePayload
Auto Trait Implementations§
impl Freeze for ComponentStatePayload
impl RefUnwindSafe for ComponentStatePayload
impl Send for ComponentStatePayload
impl Sync for ComponentStatePayload
impl Unpin for ComponentStatePayload
impl UnsafeUnpin for ComponentStatePayload
impl UnwindSafe for ComponentStatePayload
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