pub struct IncludeComposition { /* private fields */ }Expand description
The typed definitions selected for one retained include occurrence.
Implementations§
Source§impl IncludeComposition
impl IncludeComposition
Sourcepub const fn node_index(&self) -> usize
pub const fn node_index(&self) -> usize
Returns the retained occurrence represented by this composition.
Sourcepub fn services(&self) -> &[IncludeDefinition<ProjectService>]
pub fn services(&self) -> &[IncludeDefinition<ProjectService>]
Returns selected services in local-then-depth-first import order.
Sourcepub fn service(&self, name: &str) -> Option<&IncludeDefinition<ProjectService>>
pub fn service(&self, name: &str) -> Option<&IncludeDefinition<ProjectService>>
Finds a selected service by name.
Sourcepub fn networks(&self) -> &[IncludeDefinition<NetworkDefinition>]
pub fn networks(&self) -> &[IncludeDefinition<NetworkDefinition>]
Returns selected networks in local-then-depth-first import order.
Sourcepub fn network(
&self,
name: &str,
) -> Option<&IncludeDefinition<NetworkDefinition>>
pub fn network( &self, name: &str, ) -> Option<&IncludeDefinition<NetworkDefinition>>
Finds a selected network by name.
Sourcepub fn volumes(&self) -> &[IncludeDefinition<VolumeDefinition>]
pub fn volumes(&self) -> &[IncludeDefinition<VolumeDefinition>]
Returns selected volumes in local-then-depth-first import order.
Sourcepub fn volume(&self, name: &str) -> Option<&IncludeDefinition<VolumeDefinition>>
pub fn volume(&self, name: &str) -> Option<&IncludeDefinition<VolumeDefinition>>
Finds a selected volume by name.
Sourcepub fn configs(&self) -> &[IncludeDefinition<ConfigDefinition>]
pub fn configs(&self) -> &[IncludeDefinition<ConfigDefinition>]
Returns selected configs in local-then-depth-first import order.
Sourcepub fn config(&self, name: &str) -> Option<&IncludeDefinition<ConfigDefinition>>
pub fn config(&self, name: &str) -> Option<&IncludeDefinition<ConfigDefinition>>
Finds a selected config by name.
Sourcepub fn secrets(&self) -> &[IncludeDefinition<SecretDefinition>]
pub fn secrets(&self) -> &[IncludeDefinition<SecretDefinition>]
Returns selected secrets in local-then-depth-first import order.
Sourcepub fn secret(&self, name: &str) -> Option<&IncludeDefinition<SecretDefinition>>
pub fn secret(&self, name: &str) -> Option<&IncludeDefinition<SecretDefinition>>
Finds a selected secret by name.
Sourcepub fn models(&self) -> &[IncludeDefinition<ModelDefinition>]
pub fn models(&self) -> &[IncludeDefinition<ModelDefinition>]
Returns selected individual model definitions in local-then-depth-first import order.
Sourcepub fn model(&self, name: &str) -> Option<&IncludeDefinition<ModelDefinition>>
pub fn model(&self, name: &str) -> Option<&IncludeDefinition<ModelDefinition>>
Finds a selected model definition by name.
Trait Implementations§
Source§impl Clone for IncludeComposition
impl Clone for IncludeComposition
Source§fn clone(&self) -> IncludeComposition
fn clone(&self) -> IncludeComposition
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for IncludeComposition
impl Debug for IncludeComposition
impl Eq for IncludeComposition
Source§impl PartialEq for IncludeComposition
impl PartialEq for IncludeComposition
impl StructuralPartialEq for IncludeComposition
Auto Trait Implementations§
impl Freeze for IncludeComposition
impl RefUnwindSafe for IncludeComposition
impl Send for IncludeComposition
impl Sync for IncludeComposition
impl Unpin for IncludeComposition
impl UnsafeUnpin for IncludeComposition
impl UnwindSafe for IncludeComposition
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