pub struct OutputValue(/* private fields */);Expand description
Public output-side root value boundary.
Recursive data is owned by PublicValue; this sealed wrapper keeps
accepted output distinct from caller-authored InputValue.
Implementations§
Source§impl OutputValue
impl OutputValue
Sourcepub const fn as_public(&self) -> &PublicValue
pub const fn as_public(&self) -> &PublicValue
Borrow the canonical recursive public value.
Sourcepub fn into_public(self) -> PublicValue
pub fn into_public(self) -> PublicValue
Consume this boundary wrapper without conversion.
Sourcepub const fn float32(value: Float32) -> Self
pub const fn float32(value: Float32) -> Self
Build a finite 32-bit floating-point output value.
Sourcepub const fn float64(value: Float64) -> Self
pub const fn float64(value: Float64) -> Self
Build a finite 64-bit floating-point output value.
Sourcepub const fn list(values: Vec<PublicValue>) -> Self
pub const fn list(values: Vec<PublicValue>) -> Self
Build a recursive list output value.
Sourcepub const fn map(entries: Vec<(PublicValue, PublicValue)>) -> Self
pub const fn map(entries: Vec<(PublicValue, PublicValue)>) -> Self
Build a recursive map output value.
Sourcepub const fn subaccount(value: Subaccount) -> Self
pub const fn subaccount(value: Subaccount) -> Self
Build a fixed subaccount output value.
Trait Implementations§
Source§impl CandidType for OutputValue
impl CandidType for OutputValue
Source§impl Clone for OutputValue
impl Clone for OutputValue
Source§impl Debug for OutputValue
impl Debug for OutputValue
Source§impl<'de> Deserialize<'de> for OutputValue
impl<'de> Deserialize<'de> for OutputValue
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
impl Eq for OutputValue
Source§impl PartialEq for OutputValue
impl PartialEq for OutputValue
impl StructuralPartialEq for OutputValue
Auto Trait Implementations§
impl Freeze for OutputValue
impl RefUnwindSafe for OutputValue
impl Send for OutputValue
impl Sync for OutputValue
impl Unpin for OutputValue
impl UnsafeUnpin for OutputValue
impl UnwindSafe for OutputValue
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