pub struct GeneratorGroup {
pub proc: Option<Arc<DaggerSessionProc>>,
pub selection: Selection,
pub graphql_client: DynGraphQLClient,
}Fields§
§proc: Option<Arc<DaggerSessionProc>>§selection: Selection§graphql_client: DynGraphQLClientImplementations§
Source§impl GeneratorGroup
impl GeneratorGroup
Sourcepub fn changes(&self) -> Changeset
pub fn changes(&self) -> Changeset
The combined changes from the last run of the generators If any conflict occurs, for instance if the same file is modified by multiple generators, or if a file is both modified and deleted, an error is raised and the merge of the changesets will failed. Set ‘continueOnConflicts’ flag to force to merge the changes in a ‘last write wins’ strategy.
§Arguments
opt- optional argument, see inner type for documentation, use_opts to use
Sourcepub fn changes_opts(&self, opts: GeneratorGroupChangesOpts) -> Changeset
pub fn changes_opts(&self, opts: GeneratorGroupChangesOpts) -> Changeset
The combined changes from the last run of the generators If any conflict occurs, for instance if the same file is modified by multiple generators, or if a file is both modified and deleted, an error is raised and the merge of the changesets will failed. Set ‘continueOnConflicts’ flag to force to merge the changes in a ‘last write wins’ strategy.
§Arguments
opt- optional argument, see inner type for documentation, use_opts to use
Sourcepub async fn id(&self) -> Result<Id, DaggerError>
pub async fn id(&self) -> Result<Id, DaggerError>
A unique identifier for this GeneratorGroup.
Sourcepub async fn is_empty(&self) -> Result<bool, DaggerError>
pub async fn is_empty(&self) -> Result<bool, DaggerError>
Whether the generated changeset from the last run is empty or not
Sourcepub async fn list(&self) -> Result<Vec<Generator>, DaggerError>
pub async fn list(&self) -> Result<Vec<Generator>, DaggerError>
Return a list of individual generators and their details
Sourcepub async fn load_failures(&self) -> Result<Vec<String>, DaggerError>
pub async fn load_failures(&self) -> Result<Vec<String>, DaggerError>
Load failures tolerated while collecting the generators. Empty unless a workspace module could not be loaded during an unscoped ‘dagger generate’ (no selector), where load failures are tolerated so the modules that do load still generate. Each entry is a human-readable error message. An explicit selector keeps failing hard instead.
Sourcepub fn run(&self) -> GeneratorGroup
pub fn run(&self) -> GeneratorGroup
Execute all selected generators
Sourcepub fn workspace(&self) -> Workspace
pub fn workspace(&self) -> Workspace
The workspace with the combined output from the last generator run
§Arguments
opt- optional argument, see inner type for documentation, use_opts to use
Sourcepub fn workspace_opts(&self, opts: GeneratorGroupWorkspaceOpts) -> Workspace
pub fn workspace_opts(&self, opts: GeneratorGroupWorkspaceOpts) -> Workspace
The workspace with the combined output from the last generator run
§Arguments
opt- optional argument, see inner type for documentation, use_opts to use
Trait Implementations§
Source§impl Clone for GeneratorGroup
impl Clone for GeneratorGroup
Source§fn clone(&self) -> GeneratorGroup
fn clone(&self) -> GeneratorGroup
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl IntoID<Id> for GeneratorGroup
impl IntoID<Id> for GeneratorGroup
Source§impl Loadable for GeneratorGroup
impl Loadable for GeneratorGroup
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 GeneratorGroup
impl !UnwindSafe for GeneratorGroup
impl Freeze for GeneratorGroup
impl Send for GeneratorGroup
impl Sync for GeneratorGroup
impl Unpin for GeneratorGroup
impl UnsafeUnpin for GeneratorGroup
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