pub struct UserCompressed {
pub id: u64,
pub info: [u8; 32],
pub wallets: [u8; 32],
pub social_info: [u8; 32],
pub placeholder_1: [u8; 32],
pub placeholder_2: [u8; 32],
pub placeholder_3: [u8; 32],
pub placeholder_4: [u8; 32],
}
Fields§
§id: u64
User unique id inside merkle tree
info: [u8; 32]
User basic info
wallets: [u8; 32]
List of public keys representing wallets associated with the user.
User social info
placeholder_1: [u8; 32]
§placeholder_2: [u8; 32]
§placeholder_3: [u8; 32]
§placeholder_4: [u8; 32]
Trait Implementations§
Source§impl BorshDeserialize for UserCompressed
impl BorshDeserialize for UserCompressed
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 UserCompressed
impl BorshSerialize for UserCompressed
Source§impl Clone for UserCompressed
impl Clone for UserCompressed
Source§fn clone(&self) -> UserCompressed
fn clone(&self) -> UserCompressed
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for UserCompressed
impl RefUnwindSafe for UserCompressed
impl Send for UserCompressed
impl Sync for UserCompressed
impl Unpin for UserCompressed
impl UnwindSafe for UserCompressed
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