Struct dagger_sdk::FunctionCall
source · pub struct FunctionCall {
pub proc: Option<Arc<DaggerSessionProc>>,
pub selection: Selection,
pub graphql_client: DynGraphQLClient,
}Fields§
§proc: Option<Arc<DaggerSessionProc>>§selection: Selection§graphql_client: DynGraphQLClientImplementations§
source§impl FunctionCall
impl FunctionCall
sourcepub async fn id(&self) -> Result<FunctionCallId, DaggerError>
pub async fn id(&self) -> Result<FunctionCallId, DaggerError>
A unique identifier for this FunctionCall.
sourcepub fn input_args(&self) -> Vec<FunctionCallArgValue>
pub fn input_args(&self) -> Vec<FunctionCallArgValue>
The argument values the function is being invoked with.
sourcepub async fn name(&self) -> Result<String, DaggerError>
pub async fn name(&self) -> Result<String, DaggerError>
The name of the function being called.
sourcepub async fn parent(&self) -> Result<Json, DaggerError>
pub async fn parent(&self) -> Result<Json, DaggerError>
The value of the parent object of the function being called. If the function is top-level to the module, this is always an empty object.
sourcepub async fn parent_name(&self) -> Result<String, DaggerError>
pub async fn parent_name(&self) -> Result<String, DaggerError>
The name of the parent object of the function being called. If the function is top-level to the module, this is the name of the module.
sourcepub async fn return_value(&self, value: Json) -> Result<Void, DaggerError>
pub async fn return_value(&self, value: Json) -> Result<Void, DaggerError>
Set the return value of the function call to the provided value.
§Arguments
value- JSON serialization of the return value.
Trait Implementations§
source§impl Clone for FunctionCall
impl Clone for FunctionCall
source§fn clone(&self) -> FunctionCall
fn clone(&self) -> FunctionCall
Returns a copy 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 moresource§impl IntoID<FunctionCallId> for FunctionCall
impl IntoID<FunctionCallId> for FunctionCall
fn into_id( self, ) -> Pin<Box<dyn Future<Output = Result<FunctionCallId, DaggerError>> + Send>>
Auto Trait Implementations§
impl Freeze for FunctionCall
impl !RefUnwindSafe for FunctionCall
impl Send for FunctionCall
impl Sync for FunctionCall
impl Unpin for FunctionCall
impl !UnwindSafe for FunctionCall
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)