Enum spl_stake_pool::instruction::FundingType
source · [−]#[repr(C)]
pub enum FundingType {
StakeDeposit,
SolDeposit,
SolWithdraw,
}Expand description
Defines which authority to update in the SetFundingAuthority
instruction
Variants
StakeDeposit
Sets the stake deposit authority
SolDeposit
Sets the SOL deposit authority
SolWithdraw
Sets the SOL withdraw authority
Trait Implementations
sourceimpl BorshDeserialize for FundingType
impl BorshDeserialize for FundingType
sourceimpl BorshSchema for FundingType
impl BorshSchema for FundingType
sourcefn declaration() -> Declaration
fn declaration() -> Declaration
Get the name of the type without brackets.
sourcefn add_definitions_recursively(
definitions: &mut HashMap<Declaration, Definition>
)
fn add_definitions_recursively(
definitions: &mut HashMap<Declaration, Definition>
)
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
sourcefn 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.
fn schema_container() -> BorshSchemaContainer
sourceimpl BorshSerialize for FundingType
impl BorshSerialize for FundingType
sourceimpl Clone for FundingType
impl Clone for FundingType
sourcefn clone(&self) -> FundingType
fn clone(&self) -> FundingType
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for FundingType
impl Debug for FundingType
sourceimpl PartialEq<FundingType> for FundingType
impl PartialEq<FundingType> for FundingType
impl StructuralPartialEq for FundingType
Auto Trait Implementations
impl RefUnwindSafe for FundingType
impl Send for FundingType
impl Sync for FundingType
impl Unpin for FundingType
impl UnwindSafe for FundingType
Blanket Implementations
impl<T> AbiExample for T
impl<T> AbiExample for T
default fn example() -> T
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more