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_error(
&self,
error: impl IntoID<ErrorId>,
) -> Result<Void, DaggerError>
pub async fn return_error( &self, error: impl IntoID<ErrorId>, ) -> Result<Void, DaggerError>
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 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 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 UnsafeUnpin 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