pub struct SolanaFunctionEnvironment {Show 13 fields
pub function_key: String,
pub payer: String,
pub verifier: String,
pub reward_receiver: String,
pub function_data: String,
pub verifier_enclave_signer: String,
pub queue_authority: String,
pub function_routine_key: String,
pub function_routine_data: String,
pub function_request_key: String,
pub function_request_data: String,
pub cluster: String,
pub minimum_context_slot: Option<u64>,
}Expand description
The expected environment variables when a solana function is being executed
Fields§
§function_key: StringFUNCTION_KEY: the pubkey of the function being executed
payer: StringPAYER: The gas payer for this transaction
verifier: StringVERIFIER: the pubey of the oracle veriying this call
reward_receiver: StringREWARD_RECEIVER: The escrow to send the reward the oracle will receive for executing this function
function_data: StringFUNCTION_DATA: The preloaded data of the FUNCTION_KEY account
verifier_enclave_signer: StringVERIFIER_ENCLAVE_SIGNER: The keypair the verifying oracle is using to sign this transaction.
QUEUE_AUTHORITY: The authority of the oracle queue this function is executing on.
function_routine_key: StringFUNCTION_ROUTINE_KEY: If this function is being called with parameters, this variable will hold the pubkey of the request account
function_routine_data: StringFUNCTION_ROUTINE_DATA: The preloaded data of the FUNCTION_ROUTINE_KEY
account
function_request_key: StringFUNCTION_REQUEST_KEY: If this function is being called with parameters, this ariable will hold the pubkey of the request account
function_request_data: StringFUNCTION_REQUEST_DATA: The preloaded data of the FUNCTION_REQUEST_KEY
account
cluster: String§minimum_context_slot: Option<u64>Implementations§
Trait Implementations§
source§impl Clone for SolanaFunctionEnvironment
impl Clone for SolanaFunctionEnvironment
source§fn clone(&self) -> SolanaFunctionEnvironment
fn clone(&self) -> SolanaFunctionEnvironment
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for SolanaFunctionEnvironment
impl Debug for SolanaFunctionEnvironment
source§impl Default for SolanaFunctionEnvironment
impl Default for SolanaFunctionEnvironment
source§fn default() -> SolanaFunctionEnvironment
fn default() -> SolanaFunctionEnvironment
source§impl<'de> Deserialize<'de> for SolanaFunctionEnvironment
impl<'de> Deserialize<'de> for SolanaFunctionEnvironment
source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<SolanaFunctionEnvironment, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SolanaFunctionEnvironment, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
source§impl Serialize for SolanaFunctionEnvironment
impl Serialize for SolanaFunctionEnvironment
source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Auto Trait Implementations§
impl Freeze for SolanaFunctionEnvironment
impl RefUnwindSafe for SolanaFunctionEnvironment
impl Send for SolanaFunctionEnvironment
impl Sync for SolanaFunctionEnvironment
impl Unpin for SolanaFunctionEnvironment
impl UnwindSafe for SolanaFunctionEnvironment
Blanket Implementations§
source§impl<T> AbiEnumVisitor for T
impl<T> AbiEnumVisitor for T
default fn visit_for_abi( &self, _digester: &mut AbiDigester, ) -> Result<AbiDigester, DigestError>
source§impl<T> AbiEnumVisitor for T
impl<T> AbiEnumVisitor for T
default fn visit_for_abi( &self, digester: &mut AbiDigester, ) -> Result<AbiDigester, DigestError>
source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more