pub enum ValuePayload {
Inline(Box<InlineValue>),
Object(Box<ValueRef>),
}Variants§
Implementations§
Source§impl ValuePayload
impl ValuePayload
pub fn validate(&self, limits: ValueLimits) -> Result<(), ContractError>
pub fn logical_digest(&self) -> Result<Digest, ContractError>
Trait Implementations§
Source§impl Clone for ValuePayload
impl Clone for ValuePayload
Source§fn clone(&self) -> ValuePayload
fn clone(&self) -> ValuePayload
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ValuePayload
impl Debug for ValuePayload
Source§impl<'de> Deserialize<'de> for ValuePayload
impl<'de> Deserialize<'de> for ValuePayload
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 ValuePayload
Source§impl PartialEq for ValuePayload
impl PartialEq for ValuePayload
Source§impl Serialize for ValuePayload
impl Serialize for ValuePayload
impl StructuralPartialEq for ValuePayload
Auto Trait Implementations§
impl Freeze for ValuePayload
impl RefUnwindSafe for ValuePayload
impl Send for ValuePayload
impl Sync for ValuePayload
impl Unpin for ValuePayload
impl UnsafeUnpin for ValuePayload
impl UnwindSafe for ValuePayload
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