Struct lido::account_map::PubkeyAndEntry [−][src]
pub struct PubkeyAndEntry<T> {
pub pubkey: Pubkey,
pub entry: T,
}Expand description
An entry in AccountMap.
Fields
pubkey: Pubkeyentry: TImplementations
Trait Implementations
impl<T> BorshDeserialize for PubkeyAndEntry<T> where
Pubkey: BorshDeserialize,
T: BorshDeserialize,
impl<T> BorshDeserialize for PubkeyAndEntry<T> where
Pubkey: BorshDeserialize,
T: BorshDeserialize,
impl<T> BorshSchema for PubkeyAndEntry<T> where
T: BorshSchema,
Pubkey: BorshSchema,
T: BorshSchema,
impl<T> BorshSchema for PubkeyAndEntry<T> where
T: BorshSchema,
Pubkey: BorshSchema,
T: BorshSchema,
Get the name of the type without brackets.
Recursively, using DFS, add type definitions required for this type. For primitive types this is an empty map. Type definition explains how to serialize/deserialize a type. Read more
fn add_definition(
declaration: String,
definition: Definition,
definitions: &mut HashMap<String, Definition, RandomState>
)
fn add_definition(
declaration: String,
definition: Definition,
definitions: &mut HashMap<String, Definition, RandomState>
)
Helper method to add a single type definition to the map.
Returns the “default value” for a type. Read more
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
Auto Trait Implementations
impl<T> RefUnwindSafe for PubkeyAndEntry<T> where
T: RefUnwindSafe,
impl<T> Send for PubkeyAndEntry<T> where
T: Send,
impl<T> Sync for PubkeyAndEntry<T> where
T: Sync,
impl<T> Unpin for PubkeyAndEntry<T> where
T: Unpin,
impl<T> UnwindSafe for PubkeyAndEntry<T> where
T: UnwindSafe,
Blanket Implementations
pub default fn visit_for_abi(
&self,
_digester: &mut AbiDigester
) -> Result<AbiDigester, DigestError>
pub default fn visit_for_abi(
&self,
digester: &mut AbiDigester
) -> Result<AbiDigester, DigestError>
pub default fn example() -> T
Mutably borrows from an owned value. Read more