pub struct FunctionArg {
pub proc: Option<Arc<DaggerSessionProc>>,
pub selection: Selection,
pub graphql_client: DynGraphQLClient,
}
Fields§
§proc: Option<Arc<DaggerSessionProc>>
§selection: Selection
§graphql_client: DynGraphQLClient
Implementations§
Source§impl FunctionArg
impl FunctionArg
Sourcepub async fn default_path(&self) -> Result<String, DaggerError>
pub async fn default_path(&self) -> Result<String, DaggerError>
Only applies to arguments of type File or Directory. If the argument is not set, load it from the given path in the context directory
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>
A unique identifier for this FunctionArg.
Sourcepub async fn ignore(&self) -> Result<Vec<String>, DaggerError>
pub async fn ignore(&self) -> Result<Vec<String>, DaggerError>
Only applies to arguments of type Directory. The ignore patterns are applied to the input directory, and matching entries are filtered out, in a cache-efficient manner.
Sourcepub async fn name(&self) -> Result<String, DaggerError>
pub async fn name(&self) -> Result<String, DaggerError>
The name of the argument in lowerCamelCase format.
Sourcepub fn source_map(&self) -> SourceMap
pub fn source_map(&self) -> SourceMap
The location of this arg declaration.
Trait Implementations§
Source§impl Clone for FunctionArg
impl Clone for FunctionArg
Source§fn clone(&self) -> FunctionArg
fn clone(&self) -> FunctionArg
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<FunctionArgId> for FunctionArg
impl IntoID<FunctionArgId> for FunctionArg
fn into_id( self, ) -> Pin<Box<dyn Future<Output = Result<FunctionArgId, DaggerError>> + Send>>
Auto Trait Implementations§
impl Freeze for FunctionArg
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