pub enum StateDataValueV1 {
Bytes(Vec<u8>),
Hash(Vec<StateHashFieldV1>),
Json(Vec<u8>),
}Variants§
Bytes(Vec<u8>)
Hash(Vec<StateHashFieldV1>)
Json(Vec<u8>)
Byte-exact canonical JSON object data. This is user data rather than an open control-plane shape; adapters choose whether their dialect can represent it.
Implementations§
Source§impl StateDataValueV1
impl StateDataValueV1
pub fn validate(&self) -> Result<(), StateContractError>
Trait Implementations§
Source§impl Clone for StateDataValueV1
impl Clone for StateDataValueV1
Source§impl Debug for StateDataValueV1
impl Debug for StateDataValueV1
Source§impl<'de> Deserialize<'de> for StateDataValueV1
impl<'de> Deserialize<'de> for StateDataValueV1
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 StateDataValueV1
Source§impl PartialEq for StateDataValueV1
impl PartialEq for StateDataValueV1
Source§impl Serialize for StateDataValueV1
impl Serialize for StateDataValueV1
impl StructuralPartialEq for StateDataValueV1
Auto Trait Implementations§
impl Freeze for StateDataValueV1
impl RefUnwindSafe for StateDataValueV1
impl Send for StateDataValueV1
impl Sync for StateDataValueV1
impl Unpin for StateDataValueV1
impl UnsafeUnpin for StateDataValueV1
impl UnwindSafe for StateDataValueV1
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