Struct switchboard_solana::attestation_program::accounts::request::FunctionRequestAccountData
source · pub struct FunctionRequestAccountData {Show 16 fields
pub is_triggered: u8,
pub status: RequestStatus,
pub authority: Pubkey,
pub payer: Pubkey,
pub function: Pubkey,
pub escrow: Pubkey,
pub attestation_queue: Pubkey,
pub active_request: FunctionRequestTriggerRound,
pub previous_request: FunctionRequestTriggerRound,
pub max_container_params_len: u32,
pub container_params_hash: [u8; 32],
pub container_params: Vec<u8>,
pub created_at: i64,
pub garbage_collection_slot: Option<u64>,
pub error_status: u8,
pub _ebuf: [u8; 255],
}Fields§
§is_triggered: u8Whether the request is ready to be processed.
status: RequestStatusThe status of the current request.
Signer allowed to cancel the request.
payer: PubkeyThe default destination for rent exemption when the account is closed.
function: PubkeyThe function that can process this request
escrow: PubkeyThe tokenAccount escrow
attestation_queue: PubkeyThe Attestation Queue for this request.
active_request: FunctionRequestTriggerRoundThe current active request.
previous_request: FunctionRequestTriggerRoundThe previous request.
max_container_params_len: u32The maximum number of bytes to pass to the container params.
container_params_hash: [u8; 32]Hash of the serialized container_params to prevent RPC tampering. Should be verified within your function to ensure you are using the correct parameters.
container_params: Vec<u8>The stringified container params to pass to the function.
created_at: i64The unix timestamp when the function was created.
garbage_collection_slot: Option<u64>The slot when the account can be garbage collected and closed by anyone for a portion of the rent.
error_status: u8The last recorded error code if most recent response was an error.
_ebuf: [u8; 255]Reserved.
Implementations§
source§impl FunctionRequestAccountData
impl FunctionRequestAccountData
pub fn space(len: Option<u32>) -> usize
pub fn is_round_active(&self, clock: &Clock) -> bool
pub fn validate_signer<'a>( &self, function_account_info: &AccountInfo<'a>, signer: &AccountInfo<'a> ) -> Result<bool>
pub fn get_discriminator_filter() -> RpcFilterType
target_os="solana" only.pub fn get_is_triggered_filter() -> RpcFilterType
target_os="solana" only.pub fn get_is_active_filter() -> RpcFilterType
target_os="solana" only.pub fn get_queue_filter(queue_pubkey: &Pubkey) -> RpcFilterType
target_os="solana" only.pub fn get_is_ready_filters(queue_pubkey: &Pubkey) -> Vec<RpcFilterType>
target_os="solana" only.pub async fn fetch(client: &RpcClient, pubkey: Pubkey) -> Result<Self, Error>
target_os="solana" only.Trait Implementations§
source§impl AccountDeserialize for FunctionRequestAccountData
impl AccountDeserialize for FunctionRequestAccountData
source§fn try_deserialize(buf: &mut &[u8]) -> Result<Self>
fn try_deserialize(buf: &mut &[u8]) -> Result<Self>
Mint account into a token
Account.source§fn try_deserialize_unchecked(buf: &mut &[u8]) -> Result<Self>
fn try_deserialize_unchecked(buf: &mut &[u8]) -> Result<Self>
source§impl BorshDeserialize for FunctionRequestAccountDatawhere
u8: BorshDeserialize,
RequestStatus: BorshDeserialize,
Pubkey: BorshDeserialize,
FunctionRequestTriggerRound: BorshDeserialize,
u32: BorshDeserialize,
[u8; 32]: BorshDeserialize,
Vec<u8>: BorshDeserialize,
i64: BorshDeserialize,
Option<u64>: BorshDeserialize,
[u8; 255]: BorshDeserialize,
impl BorshDeserialize for FunctionRequestAccountDatawhere u8: BorshDeserialize, RequestStatus: BorshDeserialize, Pubkey: BorshDeserialize, FunctionRequestTriggerRound: BorshDeserialize, u32: BorshDeserialize, [u8; 32]: BorshDeserialize, Vec<u8>: BorshDeserialize, i64: BorshDeserialize, Option<u64>: BorshDeserialize, [u8; 255]: BorshDeserialize,
fn deserialize_reader<R: Read>(reader: &mut R) -> Result<Self, Error>
§fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
§fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_reader<R>(reader: &mut R) -> Result<Self, Error>where R: Read,
source§impl BorshSerialize for FunctionRequestAccountDatawhere
u8: BorshSerialize,
RequestStatus: BorshSerialize,
Pubkey: BorshSerialize,
FunctionRequestTriggerRound: BorshSerialize,
u32: BorshSerialize,
[u8; 32]: BorshSerialize,
Vec<u8>: BorshSerialize,
i64: BorshSerialize,
Option<u64>: BorshSerialize,
[u8; 255]: BorshSerialize,
impl BorshSerialize for FunctionRequestAccountDatawhere u8: BorshSerialize, RequestStatus: BorshSerialize, Pubkey: BorshSerialize, FunctionRequestTriggerRound: BorshSerialize, u32: BorshSerialize, [u8; 32]: BorshSerialize, Vec<u8>: BorshSerialize, i64: BorshSerialize, Option<u64>: BorshSerialize, [u8; 255]: BorshSerialize,
source§impl Clone for FunctionRequestAccountData
impl Clone for FunctionRequestAccountData
source§fn clone(&self) -> FunctionRequestAccountData
fn clone(&self) -> FunctionRequestAccountData
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for FunctionRequestAccountData
impl Default for FunctionRequestAccountData
source§impl Discriminator for FunctionRequestAccountData
impl Discriminator for FunctionRequestAccountData
const DISCRIMINATOR: [u8; 8] = _
fn discriminator() -> [u8; 8]
source§impl PartialEq<FunctionRequestAccountData> for FunctionRequestAccountData
impl PartialEq<FunctionRequestAccountData> for FunctionRequestAccountData
source§fn eq(&self, other: &FunctionRequestAccountData) -> bool
fn eq(&self, other: &FunctionRequestAccountData) -> bool
self and other values to be equal, and is used
by ==.