pub struct ProjectView { /* private fields */ }Expand description
The native consumer view of one merged and optionally profile-selected Compose project.
Implementations§
Source§impl ProjectView
impl ProjectView
Sourcepub fn source_ids(&self) -> &[SourceId]
pub fn source_ids(&self) -> &[SourceId]
Returns source documents in merge order.
Sourcepub fn base_directory(&self) -> &Path
pub fn base_directory(&self) -> &Path
Returns the project directory inherited from the first loaded document.
Sourcepub const fn provenance(&self) -> &MergeProvenance
pub const fn provenance(&self) -> &MergeProvenance
Returns provenance for the complete merged root.
Sourcepub const fn name(&self) -> Option<&ProjectValue<String>>
pub const fn name(&self) -> Option<&ProjectValue<String>>
Returns the effective explicit project name.
Sourcepub fn services(&self) -> &[ProjectService]
pub fn services(&self) -> &[ProjectService]
Returns profile-active services in merged order.
Sourcepub fn service(&self, name: &str) -> Option<&ProjectService>
pub fn service(&self, name: &str) -> Option<&ProjectService>
Finds one profile-active service.
Sourcepub fn networks(&self) -> &[ProjectResource<NetworkDefinition>]
pub fn networks(&self) -> &[ProjectResource<NetworkDefinition>]
Returns effective top-level network definitions.
Sourcepub fn volumes(&self) -> &[ProjectResource<VolumeDefinition>]
pub fn volumes(&self) -> &[ProjectResource<VolumeDefinition>]
Returns effective top-level volume definitions.
Sourcepub fn configs(&self) -> &[ProjectResource<ConfigDefinition>]
pub fn configs(&self) -> &[ProjectResource<ConfigDefinition>]
Returns effective top-level config definitions.
Sourcepub fn secrets(&self) -> &[ProjectResource<SecretDefinition>]
pub fn secrets(&self) -> &[ProjectResource<SecretDefinition>]
Returns effective top-level secret definitions.
Sourcepub fn unmodeled_fields(&self) -> &[ProjectFieldReference]
pub fn unmodeled_fields(&self) -> &[ProjectFieldReference]
Returns root fields retained outside this initial native project-view boundary.
Trait Implementations§
Source§impl Clone for ProjectView
impl Clone for ProjectView
Source§fn clone(&self) -> ProjectView
fn clone(&self) -> ProjectView
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 ProjectView
impl Debug for ProjectView
impl Eq for ProjectView
Source§impl PartialEq for ProjectView
impl PartialEq for ProjectView
impl StructuralPartialEq for ProjectView
Auto Trait Implementations§
impl Freeze for ProjectView
impl RefUnwindSafe for ProjectView
impl Send for ProjectView
impl Sync for ProjectView
impl Unpin for ProjectView
impl UnsafeUnpin for ProjectView
impl UnwindSafe for ProjectView
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