pub struct LongEnvironmentFile { /* private fields */ }Expand description
One mapping-syntax service env_file entry.
Implementations§
Source§impl LongEnvironmentFile
impl LongEnvironmentFile
Sourcepub const fn span(&self) -> SourceSpan
pub const fn span(&self) -> SourceSpan
Returns the complete long-syntax entry span.
Sourcepub const fn path(&self) -> Option<&Located<String>>
pub const fn path(&self) -> Option<&Located<String>>
Returns the required environment-file path.
Sourcepub const fn required(&self) -> Option<&Located<BooleanValue>>
pub const fn required(&self) -> Option<&Located<BooleanValue>>
Returns the explicit required-file choice; absence means Compose’s default true.
Sourcepub const fn format(&self) -> Option<&EnvironmentFileFormat>
pub const fn format(&self) -> Option<&EnvironmentFileFormat>
Returns the explicit file format; absence means Compose’s default parser.
Sourcepub fn extension_fields(&self) -> &[FieldReference]
pub fn extension_fields(&self) -> &[FieldReference]
Returns retained x- fields.
Sourcepub fn unknown_fields(&self) -> &[FieldReference]
pub fn unknown_fields(&self) -> &[FieldReference]
Returns unrecognized long-syntax fields.
Trait Implementations§
Source§impl Clone for LongEnvironmentFile
impl Clone for LongEnvironmentFile
Source§fn clone(&self) -> LongEnvironmentFile
fn clone(&self) -> LongEnvironmentFile
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 LongEnvironmentFile
impl Debug for LongEnvironmentFile
impl Eq for LongEnvironmentFile
Source§impl PartialEq for LongEnvironmentFile
impl PartialEq for LongEnvironmentFile
impl StructuralPartialEq for LongEnvironmentFile
Auto Trait Implementations§
impl Freeze for LongEnvironmentFile
impl RefUnwindSafe for LongEnvironmentFile
impl Send for LongEnvironmentFile
impl Sync for LongEnvironmentFile
impl Unpin for LongEnvironmentFile
impl UnsafeUnpin for LongEnvironmentFile
impl UnwindSafe for LongEnvironmentFile
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