pub enum DataValue {
}Variants§
Bool(bool)
U8(u8)
I8(i8)
U16(u16)
I16(i16)
U32(u32)
I32(i32)
U64(u64)
I64(i64)
U128(u128)
I128(i128)
Bytes(LEB128Vec<u8>)
Pubkey(Pubkey)
Trait Implementations§
Source§impl BorshDeserialize for DataValuewhere
bool: BorshDeserialize,
u8: BorshDeserialize,
i8: BorshDeserialize,
u16: BorshDeserialize,
i16: BorshDeserialize,
u32: BorshDeserialize,
i32: BorshDeserialize,
u64: BorshDeserialize,
i64: BorshDeserialize,
u128: BorshDeserialize,
i128: BorshDeserialize,
LEB128Vec<u8>: BorshDeserialize,
Pubkey: BorshDeserialize,
impl BorshDeserialize for DataValuewhere
bool: BorshDeserialize,
u8: BorshDeserialize,
i8: BorshDeserialize,
u16: BorshDeserialize,
i16: BorshDeserialize,
u32: BorshDeserialize,
i32: BorshDeserialize,
u64: BorshDeserialize,
i64: BorshDeserialize,
u128: BorshDeserialize,
i128: BorshDeserialize,
LEB128Vec<u8>: BorshDeserialize,
Pubkey: BorshDeserialize,
fn deserialize_reader<R: Read>(reader: &mut R) -> Result<Self, Error>
Source§fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes.
Source§fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
Deserialize this instance from a slice of bytes.
fn try_from_reader<R>(reader: &mut R) -> Result<Self, Error>where
R: Read,
Source§impl BorshSerialize for DataValuewhere
bool: BorshSerialize,
u8: BorshSerialize,
i8: BorshSerialize,
u16: BorshSerialize,
i16: BorshSerialize,
u32: BorshSerialize,
i32: BorshSerialize,
u64: BorshSerialize,
i64: BorshSerialize,
u128: BorshSerialize,
i128: BorshSerialize,
LEB128Vec<u8>: BorshSerialize,
Pubkey: BorshSerialize,
impl BorshSerialize for DataValuewhere
bool: BorshSerialize,
u8: BorshSerialize,
i8: BorshSerialize,
u16: BorshSerialize,
i16: BorshSerialize,
u32: BorshSerialize,
i32: BorshSerialize,
u64: BorshSerialize,
i64: BorshSerialize,
u128: BorshSerialize,
i128: BorshSerialize,
LEB128Vec<u8>: BorshSerialize,
Pubkey: BorshSerialize,
Source§impl EnumExt for DataValuewhere
bool: BorshDeserialize,
u8: BorshDeserialize,
i8: BorshDeserialize,
u16: BorshDeserialize,
i16: BorshDeserialize,
u32: BorshDeserialize,
i32: BorshDeserialize,
u64: BorshDeserialize,
i64: BorshDeserialize,
u128: BorshDeserialize,
i128: BorshDeserialize,
LEB128Vec<u8>: BorshDeserialize,
Pubkey: BorshDeserialize,
impl EnumExt for DataValuewhere
bool: BorshDeserialize,
u8: BorshDeserialize,
i8: BorshDeserialize,
u16: BorshDeserialize,
i16: BorshDeserialize,
u32: BorshDeserialize,
i32: BorshDeserialize,
u64: BorshDeserialize,
i64: BorshDeserialize,
u128: BorshDeserialize,
i128: BorshDeserialize,
LEB128Vec<u8>: BorshDeserialize,
Pubkey: BorshDeserialize,
impl Eq for DataValue
impl StructuralPartialEq for DataValue
Auto Trait Implementations§
impl Freeze for DataValue
impl RefUnwindSafe for DataValue
impl Send for DataValue
impl Sync for DataValue
impl Unpin for DataValue
impl UnwindSafe for DataValue
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more