pub enum PublicValue {
Show 25 variants
Account(Account),
Blob(Vec<u8>),
Bool(bool),
Date(Date),
Decimal(Decimal),
Duration(Duration),
Enum(PublicEnumValue),
Float32(Float32),
Float64(Float64),
Int64(i64),
Int128(i128),
IntBig(IntBig),
List(Vec<Self>),
Map(Vec<(Self, Self)>),
Null,
Principal(Principal),
Subaccount(Subaccount),
Text(String),
Timestamp(Timestamp),
Nat64(u64),
Nat128(u128),
NatBig(NatBig),
Ulid(Ulid),
Unit,
U256(U256),
}Expand description
Canonical recursive value carried by public input and output boundaries.
InputValue and OutputValue remain distinct root types. Their recursive
payload is shared here so Candid and Serde derive one value visitor family.
Variants§
Account(Account)
Blob(Vec<u8>)
Bool(bool)
Date(Date)
Decimal(Decimal)
Duration(Duration)
Enum(PublicEnumValue)
Float32(Float32)
Float64(Float64)
Int64(i64)
Int128(i128)
IntBig(IntBig)
List(Vec<Self>)
Map(Vec<(Self, Self)>)
Null
Principal(Principal)
Subaccount(Subaccount)
Text(String)
Timestamp(Timestamp)
Nat64(u64)
Nat128(u128)
NatBig(NatBig)
Ulid(Ulid)
Unit
U256(U256)
Implementations§
Source§impl PublicValue
impl PublicValue
Sourcepub fn render_text(&self) -> String
pub fn render_text(&self) -> String
Render one public value into the stable row-projection text form.
Trait Implementations§
Source§impl CandidType for PublicValue
impl CandidType for PublicValue
Source§impl Clone for PublicValue
impl Clone for PublicValue
Source§impl Debug for PublicValue
impl Debug for PublicValue
Source§impl<'de> Deserialize<'de> for PublicValue
impl<'de> Deserialize<'de> for PublicValue
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 PublicValue
Source§impl From<PublicValue> for InputValue
impl From<PublicValue> for InputValue
Source§fn from(value: PublicValue) -> Self
fn from(value: PublicValue) -> Self
Converts to this type from the input type.
Source§impl PartialEq for PublicValue
impl PartialEq for PublicValue
impl StructuralPartialEq for PublicValue
Auto Trait Implementations§
impl Freeze for PublicValue
impl RefUnwindSafe for PublicValue
impl Send for PublicValue
impl Sync for PublicValue
impl Unpin for PublicValue
impl UnsafeUnpin for PublicValue
impl UnwindSafe for PublicValue
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