Struct dagger_sdk::FunctionArg
source · pub struct FunctionArg {
pub proc: Option<Arc<Child>>,
pub selection: Selection,
pub graphql_client: DynGraphQLClient,
}Fields§
§proc: Option<Arc<Child>>§selection: Selection§graphql_client: DynGraphQLClientImplementations§
source§impl FunctionArg
impl FunctionArg
sourcepub async fn default_value(&self) -> Result<Json, DaggerError>
pub async fn default_value(&self) -> Result<Json, DaggerError>
A default value to use for this argument when not explicitly set by the caller, if any
sourcepub async fn description(&self) -> Result<String, DaggerError>
pub async fn description(&self) -> Result<String, DaggerError>
A doc string for the argument, if any
sourcepub async fn id(&self) -> Result<FunctionArgId, DaggerError>
pub async fn id(&self) -> Result<FunctionArgId, DaggerError>
The ID of the argument
sourcepub async fn name(&self) -> Result<String, DaggerError>
pub async fn name(&self) -> Result<String, DaggerError>
The name of the argument
Trait Implementations§
source§impl Clone for FunctionArg
impl Clone for FunctionArg
source§fn clone(&self) -> FunctionArg
fn clone(&self) -> FunctionArg
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 FunctionArg
impl !Send for FunctionArg
impl !Sync for FunctionArg
impl Unpin for FunctionArg
impl !UnwindSafe for FunctionArg
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