pub struct IncludedResourcePath { /* private fields */ }Expand description
One selected included service bind, config, or secret file path and its occurrence-specific lexical result.
Implementations§
Source§impl IncludedResourcePath
impl IncludedResourcePath
Sourcepub const fn kind(&self) -> HostPathKind
pub const fn kind(&self) -> HostPathKind
Returns the lexical path category.
Sourcepub const fn purpose(&self) -> &PathPurpose
pub const fn purpose(&self) -> &PathPurpose
Returns the selected resource and namespace that supplied this path.
Sourcepub const fn source(&self) -> SourceSpan
pub const fn source(&self) -> SourceSpan
Returns the source span that anchors this path finding.
Long-syntax bind sources and top-level config/secret file values retain the exact
authored value-scalar span. A short-syntax service bind is decoded from one colon-delimited
mount scalar, so its source component has no independently retained byte range; this getter
deliberately returns the containing authored mount-scalar span instead of guessing through
YAML quoting or escape spelling.
Sourcepub const fn occurrence_index(&self) -> usize
pub const fn occurrence_index(&self) -> usize
Returns the retained include occurrence index.
Sourcepub const fn identity(&self) -> &IncludeIdentity
pub const fn identity(&self) -> &IncludeIdentity
Returns the caller-defined identity of the retained occurrence.
Sourcepub fn base_directory(&self) -> Option<&Path>
pub fn base_directory(&self) -> Option<&Path>
Returns the authorized occurrence base, when planning supplied one.
Trait Implementations§
Source§impl Clone for IncludedResourcePath
impl Clone for IncludedResourcePath
Source§fn clone(&self) -> IncludedResourcePath
fn clone(&self) -> IncludedResourcePath
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more