pub struct CommandContext { /* private fields */ }Implementations§
Source§impl CommandContext
impl CommandContext
Sourcepub fn builder() -> CommandContextBuilder
pub fn builder() -> CommandContextBuilder
Create an instance of CommandContext using the builder syntax
Source§impl CommandContext
impl CommandContext
pub fn test_context() -> Self
pub fn log(&self, log: NodeLogContent) -> Result<(), TrySendError<Event>>
pub fn flow_inputs(&self) -> &Map
pub fn new_interflow_origin(&self) -> FlowRunOrigin
pub fn flow_run_id(&self) -> &FlowRunId
pub fn node_id(&self) -> &NodeId
pub fn times(&self) -> &u32
pub fn environment(&self) -> &HashMap<String, String>
pub fn endpoints(&self) -> &Endpoints
pub fn flow_owner(&self) -> &User
pub fn started_by(&self) -> &User
pub fn solana_config(&self) -> &SolanaClientConfig
pub fn solana_client(&self) -> &Arc<SolanaClient>
pub fn http(&self) -> &Client
pub async fn api_input( &mut self, timeout: Option<Duration>, ) -> Result<Response, Error>
Sourcepub async fn get_jwt_header(&mut self) -> Result<String, Error>
pub async fn get_jwt_header(&mut self) -> Result<String, Error>
Call get_jwt service, the result will have Bearer prefix.
Sourcepub async fn execute(
&mut self,
instructions: Instructions,
output: Map,
) -> Result<Response, Error>
pub async fn execute( &mut self, instructions: Instructions, output: Map, ) -> Result<Response, Error>
Call execute service.
Sourcepub async fn request_signature(
&mut self,
pubkey: Pubkey,
message: Bytes,
timeout: Duration,
) -> Result<SignatureResponse, Error>
pub async fn request_signature( &mut self, pubkey: Pubkey, message: Bytes, timeout: Duration, ) -> Result<SignatureResponse, Error>
Call signer service.
pub fn extensions_mut(&mut self) -> Option<&mut Extensions>
pub fn raw(&self) -> RawContext<'_>
Trait Implementations§
Source§impl Clone for CommandContext
impl Clone for CommandContext
Source§fn clone(&self) -> CommandContext
fn clone(&self) -> CommandContext
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CommandContext
impl !RefUnwindSafe for CommandContext
impl Send for CommandContext
impl Sync for CommandContext
impl Unpin for CommandContext
impl !UnwindSafe for CommandContext
Blanket Implementations§
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
Mutably borrows from an owned value. Read more