pub struct ServiceDependency { /* private fields */ }Expand description
One long-syntax service dependency.
Implementations§
Source§impl ServiceDependency
impl ServiceDependency
Sourcepub const fn span(&self) -> SourceSpan
pub const fn span(&self) -> SourceSpan
Returns the complete dependency mapping span.
Sourcepub const fn condition(&self) -> Option<&Located<DependencyCondition>>
pub const fn condition(&self) -> Option<&Located<DependencyCondition>>
Returns the explicitly authored dependency condition.
Sourcepub const fn restart(&self) -> Option<&Located<BooleanValue>>
pub const fn restart(&self) -> Option<&Located<BooleanValue>>
Returns whether explicit Compose updates restart the dependent service.
Sourcepub const fn required(&self) -> Option<&Located<BooleanValue>>
pub const fn required(&self) -> Option<&Located<BooleanValue>>
Returns whether the dependency is required.
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 dependency fields.
Trait Implementations§
Source§impl Clone for ServiceDependency
impl Clone for ServiceDependency
Source§fn clone(&self) -> ServiceDependency
fn clone(&self) -> ServiceDependency
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 ServiceDependency
impl Debug for ServiceDependency
impl Eq for ServiceDependency
Source§impl PartialEq for ServiceDependency
impl PartialEq for ServiceDependency
impl StructuralPartialEq for ServiceDependency
Auto Trait Implementations§
impl Freeze for ServiceDependency
impl RefUnwindSafe for ServiceDependency
impl Send for ServiceDependency
impl Sync for ServiceDependency
impl Unpin for ServiceDependency
impl UnsafeUnpin for ServiceDependency
impl UnwindSafe for ServiceDependency
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