Enum hpl_hive_control::state::user_state::ProfileData
source · pub enum ProfileData {
SingleValue(String),
MultiValue(Vec<String>),
}
Expand description
Enum representing different types of profile data. Profile data can be a SingleValue, MultiValue, or an Entity represented by a merkle tree.
Variants§
Implementations§
Trait Implementations§
source§impl BorshDeserialize for ProfileData
impl BorshDeserialize for ProfileData
fn deserialize_reader<R: Read>(reader: &mut R) -> Result<Self, Error>
§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.
§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 ProfileData
impl BorshSerialize for ProfileData
source§impl Clone for ProfileData
impl Clone for ProfileData
source§fn clone(&self) -> ProfileData
fn clone(&self) -> ProfileData
Returns a copy of the value. Read more
1.0.0 · 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 ProfileData
impl Debug for ProfileData
source§impl EnumExt for ProfileData
impl EnumExt for ProfileData
source§impl PartialEq for ProfileData
impl PartialEq for ProfileData
source§fn eq(&self, other: &ProfileData) -> bool
fn eq(&self, other: &ProfileData) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ProfileData
impl StructuralEq for ProfileData
impl StructuralPartialEq for ProfileData
Auto Trait Implementations§
impl RefUnwindSafe for ProfileData
impl Send for ProfileData
impl Sync for ProfileData
impl Unpin for ProfileData
impl UnwindSafe for ProfileData
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more