Struct velas_account_program::Operational[][src]

#[repr(C)]pub struct Operational {
    pub pubkey: Pubkey,
    pub state: OperationalState,
    pub agent_type: Vec<u8>,
    pub scopes: Vec<u8>,
    pub whitelist_programs: Vec<ExternalProgram>,
    pub whitelist_tokens: Vec<ExternalToken>,
    pub is_master_key: bool,
}

Operational key state.

Fields

pubkey: Pubkey

Operational key

state: OperationalState

Operational key state

agent_type: Vec<u8>

Type of the agent session associated with an operational key

scopes: Vec<u8>

Allowed instruction for operational key

whitelist_programs: Vec<ExternalProgram>

Allowed programs to call

whitelist_tokens: Vec<ExternalToken>

Allowed token accounts

is_master_key: bool

Master key is allowed to call any instruction in Vaccount

Trait Implementations

impl BorshDeserialize for Operational where
    Pubkey: BorshDeserialize,
    OperationalState: BorshDeserialize,
    Vec<u8>: BorshDeserialize,
    Vec<u8>: BorshDeserialize,
    Vec<ExternalProgram>: BorshDeserialize,
    Vec<ExternalToken>: BorshDeserialize,
    bool: BorshDeserialize
[src]

impl BorshSchema for Operational where
    Pubkey: BorshSchema,
    OperationalState: BorshSchema,
    Vec<u8>: BorshSchema,
    Vec<u8>: BorshSchema,
    Vec<ExternalProgram>: BorshSchema,
    Vec<ExternalToken>: BorshSchema,
    bool: BorshSchema
[src]

impl BorshSerialize for Operational where
    Pubkey: BorshSerialize,
    OperationalState: BorshSerialize,
    Vec<u8>: BorshSerialize,
    Vec<u8>: BorshSerialize,
    Vec<ExternalProgram>: BorshSerialize,
    Vec<ExternalToken>: BorshSerialize,
    bool: BorshSerialize
[src]

impl Clone for Operational[src]

impl Debug for Operational[src]

impl Default for Operational[src]

impl<'de> Deserialize<'de> for Operational[src]

impl PartialEq<Operational> for Operational[src]

impl Serialize for Operational[src]

impl StructuralPartialEq for Operational[src]

Auto Trait Implementations

impl RefUnwindSafe for Operational

impl Send for Operational

impl Sync for Operational

impl Unpin for Operational

impl UnwindSafe for Operational

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> MaybeDebug for T where
    T: Debug
[src]

impl<T> Same<T> for T[src]

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Typeable for T where
    T: Any

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]