Struct dagger_sdk::FunctionCall
source · pub struct FunctionCall {
pub proc: Option<Arc<Child>>,
pub selection: Selection,
pub graphql_client: DynGraphQLClient,
}Fields§
§proc: Option<Arc<Child>>§selection: Selection§graphql_client: DynGraphQLClientImplementations§
source§impl FunctionCall
impl 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. The value should be a string of the 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 moreAuto Trait Implementations§
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