pub struct Artifacts {
pub proc: Option<Arc<DaggerSessionProc>>,
pub selection: Selection,
pub graphql_client: DynGraphQLClient,
}Fields§
§proc: Option<Arc<DaggerSessionProc>>§selection: Selection§graphql_client: DynGraphQLClientImplementations§
Source§impl Artifacts
impl Artifacts
Sourcepub async fn id(&self) -> Result<Id, DaggerError>
pub async fn id(&self) -> Result<Id, DaggerError>
A unique identifier for this Artifacts.
Sourcepub async fn as_expertise(&self) -> Result<Vec<Expertise>, DaggerError>
pub async fn as_expertise(&self) -> Result<Vec<Expertise>, DaggerError>
Convert the selection to expertise without running the functions. Each must take one LLM! argument and return LLM!; any other arguments must be optional or auto-filled. Agent arguments receive the agent that owns the conversation. A module load failure fails with its load error.
Sourcepub async fn as_generators(&self) -> Result<Vec<Generator>, DaggerError>
pub async fn as_generators(&self) -> Result<Vec<Generator>, DaggerError>
Convert the selection to Generators without running them. Fail if any artifact is not a Generator. Module load failures are skipped: generating can repair them.
Sourcepub async fn as_checks(&self) -> Result<Vec<Check>, DaggerError>
pub async fn as_checks(&self) -> Result<Vec<Check>, DaggerError>
Convert the selection to Checks. Fail if any artifact is not a Check. A module load failure is a Check that fails with its load error. Does not apply command filters or run the checks.
Sourcepub async fn as_changesets(&self) -> Result<Vec<Changeset>, DaggerError>
pub async fn as_changesets(&self) -> Result<Vec<Changeset>, DaggerError>
Convert the selection to Changesets. Fail if any artifact is not a Changeset; a module load failure fails with its load error. Does not apply command filters.
Sourcepub async fn as_services(&self) -> Result<Vec<Service>, DaggerError>
pub async fn as_services(&self) -> Result<Vec<Service>, DaggerError>
Convert the selection to Services. Fail if any artifact is not a Service; a module load failure fails with its load error. Does not apply command filters or start the services.
Sourcepub async fn path_definitions(&self) -> Result<Vec<ArtifactPath>, DaggerError>
pub async fn path_definitions(&self) -> Result<Vec<ArtifactPath>, DaggerError>
List selected schema paths, including empty collections. Does not read runtime values. Applies type keys and collection presence; collection key values require items.
§Arguments
opt- optional argument, see inner type for documentation, use_opts to use
Sourcepub async fn path_definitions_opts<'a>(
&self,
opts: ArtifactsPathDefinitionsOpts<'a>,
) -> Result<Vec<ArtifactPath>, DaggerError>
pub async fn path_definitions_opts<'a>( &self, opts: ArtifactsPathDefinitionsOpts<'a>, ) -> Result<Vec<ArtifactPath>, DaggerError>
List selected schema paths, including empty collections. Does not read runtime values. Applies type keys and collection presence; collection key values require items.
§Arguments
opt- optional argument, see inner type for documentation, use_opts to use
Sourcepub async fn dimension_definitions(
&self,
) -> Result<Vec<ArtifactDimension>, DaggerError>
pub async fn dimension_definitions( &self, ) -> Result<Vec<ArtifactDimension>, DaggerError>
List dimensions on the selected schema paths, including empty collections. Does not read runtime values.
Sourcepub async fn values(&self) -> Result<Vec<ArtifactResult>, DaggerError>
pub async fn values(&self) -> Result<Vec<ArtifactResult>, DaggerError>
Evaluate the selection in parallel, retaining each result and error.
§Arguments
opt- optional argument, see inner type for documentation, use_opts to use
Sourcepub async fn values_opts(
&self,
opts: ArtifactsValuesOpts,
) -> Result<Vec<ArtifactResult>, DaggerError>
pub async fn values_opts( &self, opts: ArtifactsValuesOpts, ) -> Result<Vec<ArtifactResult>, DaggerError>
Evaluate the selection in parallel, retaining each result and error.
§Arguments
opt- optional argument, see inner type for documentation, use_opts to use
Sourcepub async fn modules(&self) -> Result<Vec<Module>, DaggerError>
pub async fn modules(&self) -> Result<Vec<Module>, DaggerError>
List the modules represented in this selection without evaluating artifact values.
Sourcepub async fn types(&self) -> Result<Vec<TypeDef>, DaggerError>
pub async fn types(&self) -> Result<Vec<TypeDef>, DaggerError>
List concrete type definitions represented in this selection, sorted by name with no duplicates.
Sourcepub fn filter_directives(&self, directives: Vec<impl Into<String>>) -> Artifacts
pub fn filter_directives(&self, directives: Vec<impl Into<String>>) -> Artifacts
Keep artifacts with any listed directive. Does not filter by type or workspace settings.
§Arguments
opt- optional argument, see inner type for documentation, use_opts to use
Sourcepub fn filter_directives_opts(
&self,
directives: Vec<impl Into<String>>,
opts: ArtifactsFilterDirectivesOpts,
) -> Artifacts
pub fn filter_directives_opts( &self, directives: Vec<impl Into<String>>, opts: ArtifactsFilterDirectivesOpts, ) -> Artifacts
Keep artifacts with any listed directive. Does not filter by type or workspace settings.
§Arguments
opt- optional argument, see inner type for documentation, use_opts to use
Sourcepub fn filter_parent_types(&self, types: Vec<impl Into<String>>) -> Artifacts
pub fn filter_parent_types(&self, types: Vec<impl Into<String>>) -> Artifacts
Keep artifacts whose immediate parent has any listed object type. Artifacts without a typed parent do not match.
§Arguments
opt- optional argument, see inner type for documentation, use_opts to use
Sourcepub fn filter_parent_types_opts(
&self,
types: Vec<impl Into<String>>,
opts: ArtifactsFilterParentTypesOpts,
) -> Artifacts
pub fn filter_parent_types_opts( &self, types: Vec<impl Into<String>>, opts: ArtifactsFilterParentTypesOpts, ) -> Artifacts
Keep artifacts whose immediate parent has any listed object type. Artifacts without a typed parent do not match.
§Arguments
opt- optional argument, see inner type for documentation, use_opts to use
Sourcepub fn filter_parent_directives(
&self,
directives: Vec<impl Into<String>>,
) -> Artifacts
pub fn filter_parent_directives( &self, directives: Vec<impl Into<String>>, ) -> Artifacts
Keep artifacts whose immediate parent has any listed directive. Artifacts without a parent do not match.
§Arguments
opt- optional argument, see inner type for documentation, use_opts to use
Sourcepub fn filter_parent_directives_opts(
&self,
directives: Vec<impl Into<String>>,
opts: ArtifactsFilterParentDirectivesOpts,
) -> Artifacts
pub fn filter_parent_directives_opts( &self, directives: Vec<impl Into<String>>, opts: ArtifactsFilterParentDirectivesOpts, ) -> Artifacts
Keep artifacts whose immediate parent has any listed directive. Artifacts without a parent do not match.
§Arguments
opt- optional argument, see inner type for documentation, use_opts to use
Sourcepub fn with_artifacts(&self, artifacts: impl IntoID<Id>) -> Artifacts
pub fn with_artifacts(&self, artifacts: impl IntoID<Id>) -> Artifacts
Combine two selections, keeping each workspace address once. Different addresses remain distinct even if they return the same object.
Sourcepub fn without_uri(&self, uri: impl Into<String>) -> Artifacts
pub fn without_uri(&self, uri: impl Into<String>) -> Artifacts
Remove artifacts selected by a DAG address.
Sourcepub fn filter_types(&self, types: Vec<impl Into<String>>) -> Artifacts
pub fn filter_types(&self, types: Vec<impl Into<String>>) -> Artifacts
Keep artifacts of any listed concrete GraphQL type.
§Arguments
opt- optional argument, see inner type for documentation, use_opts to use
Sourcepub fn filter_types_opts(
&self,
types: Vec<impl Into<String>>,
opts: ArtifactsFilterTypesOpts,
) -> Artifacts
pub fn filter_types_opts( &self, types: Vec<impl Into<String>>, opts: ArtifactsFilterTypesOpts, ) -> Artifacts
Keep artifacts of any listed concrete GraphQL type.
§Arguments
opt- optional argument, see inner type for documentation, use_opts to use
Sourcepub fn filter_path(&self, path: Vec<impl Into<String>>) -> Artifacts
pub fn filter_path(&self, path: Vec<impl Into<String>>) -> Artifacts
Match one complete, ordered field sequence exactly.
Sourcepub fn filter_path_pattern(&self, pattern: impl Into<String>) -> Artifacts
pub fn filter_path_pattern(&self, pattern: impl Into<String>) -> Artifacts
Keep paths that match a glob pattern. A literal path matches exactly. Both module-qualified and workspace main paths match.
Sourcepub fn filter_dimensions(&self, dimensions: Vec<impl Into<String>>) -> Artifacts
pub fn filter_dimensions(&self, dimensions: Vec<impl Into<String>>) -> Artifacts
Keep artifacts selected through any listed dimension.
Sourcepub fn filter_dimension_keys(
&self,
dimension: impl Into<String>,
keys: Vec<impl Into<String>>,
) -> Artifacts
pub fn filter_dimension_keys( &self, dimension: impl Into<String>, keys: Vec<impl Into<String>>, ) -> Artifacts
Keep artifacts with any listed key in this dimension.
Sourcepub fn filter_uri(&self, uri: impl Into<String>) -> Artifacts
pub fn filter_uri(&self, uri: impl Into<String>) -> Artifacts
Apply a DAG address as one filter: the chain of path, type, and dimension-key filters it encodes. The scheme is optional. The path may be a pattern; an empty path selects all artifacts. A module that failed to load keeps its load failure when the module could hold what the address selects, as with every filter (see Artifacts).
§Arguments
uri- A DAG address: [dag[+]://][ ][? = &…]
Sourcepub async fn dimensions(&self) -> Result<Vec<String>, DaggerError>
pub async fn dimensions(&self) -> Result<Vec<String>, DaggerError>
List dimension identifiers represented in this selection, sorted with no duplicates.
Sourcepub async fn dimension_keys(
&self,
dimension: impl Into<String>,
) -> Result<Vec<String>, DaggerError>
pub async fn dimension_keys( &self, dimension: impl Into<String>, ) -> Result<Vec<String>, DaggerError>
List keys represented in this selection for the given dimension, sorted with no duplicates.
Sourcepub async fn dimension_items(
&self,
dimension: impl Into<String>,
) -> Result<Vec<Artifact>, DaggerError>
pub async fn dimension_items( &self, dimension: impl Into<String>, ) -> Result<Vec<Artifact>, DaggerError>
List collection items represented in this selection for the given dimension. Preserve parent keys and remove duplicate item addresses. Does not evaluate item values.
Sourcepub async fn items(&self) -> Result<Vec<Artifact>, DaggerError>
pub async fn items(&self) -> Result<Vec<Artifact>, DaggerError>
Enumerate complete artifacts without evaluating their values.
Sourcepub fn one(&self) -> Artifact
pub fn one(&self) -> Artifact
Require exactly one artifact; fail if there are zero or multiple matches. Several matches are listed, one address per line.
Sourcepub async fn uri(&self) -> Result<String, DaggerError>
pub async fn uri(&self) -> Result<String, DaggerError>
The DAG address that selects this whole selection: filterUri(uri) selects the same set.
Trait Implementations§
Source§impl Loadable for Artifacts
impl Loadable for Artifacts
Source§fn graphql_type() -> &'static str
fn graphql_type() -> &'static str
"Container").Source§fn from_query(
proc: Option<Arc<DaggerSessionProc>>,
selection: Selection,
graphql_client: DynGraphQLClient,
) -> Self
fn from_query( proc: Option<Arc<DaggerSessionProc>>, selection: Selection, graphql_client: DynGraphQLClient, ) -> Self
Auto Trait Implementations§
impl !RefUnwindSafe for Artifacts
impl !UnwindSafe for Artifacts
impl Freeze for Artifacts
impl Send for Artifacts
impl Sync for Artifacts
impl Unpin for Artifacts
impl UnsafeUnpin for Artifacts
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more