Struct solana_stake_program::stake_state::Authorized [−]
pub struct Authorized {
pub staker: Pubkey,
pub withdrawer: Pubkey,
}Fields
staker: Pubkeywithdrawer: PubkeyImplementations
impl Authorized
impl Authorizedpub fn auto(authorized: &Pubkey) -> Authorizedpub fn check(
&self,
signers: &HashSet<Pubkey, RandomState>,
stake_authorize: StakeAuthorize
) -> Result<(), InstructionError>Trait Implementations
impl AbiExample for Authorized
impl AbiExample for Authorizedpub fn example() -> Authorizedimpl Clone for Authorized
impl Clone for Authorizedpub fn clone(&self) -> Authorized
pub fn clone(&self) -> AuthorizedReturns a copy of the value. Read more
Performs copy-assignment from source. Read more
impl Debug for Authorized
impl Debug for Authorizedimpl Default for Authorized
impl Default for Authorizedpub fn default() -> Authorized
pub fn default() -> AuthorizedReturns the “default value” for a type. Read more
impl<'de> Deserialize<'de> for Authorized
impl<'de> Deserialize<'de> for Authorizedpub fn deserialize<__D>(
__deserializer: __D
) -> Result<Authorized, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<Authorized, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>, Deserialize this value from the given Serde deserializer. Read more
impl PartialEq<Authorized> for Authorized
impl PartialEq<Authorized> for Authorizedpub fn eq(&self, other: &Authorized) -> bool
pub fn eq(&self, other: &Authorized) -> boolThis method tests for self and other values to be equal, and is used
by ==. Read more
pub fn ne(&self, other: &Authorized) -> bool
pub fn ne(&self, other: &Authorized) -> boolThis method tests for !=.
impl Serialize for Authorized
impl Serialize for Authorizedpub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer, Serialize this value into the given Serde serializer. Read more
impl Copy for Authorizedimpl StructuralPartialEq for AuthorizedAuto Trait Implementations
impl RefUnwindSafe for Authorizedimpl Send for Authorizedimpl Sync for Authorizedimpl Unpin for Authorizedimpl UnwindSafe for AuthorizedBlanket 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>Mutably borrows from an owned value. Read more
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
type Output = T
type Output = TShould always be Self
pub fn vzip(self) -> V