pub struct ServiceHook { /* private fields */ }Expand description
One authored service lifecycle-hook mapping.
Implementations§
Source§impl ServiceHook
impl ServiceHook
Sourcepub const fn span(&self) -> SourceSpan
pub const fn span(&self) -> SourceSpan
Returns the complete hook mapping span.
Sourcepub const fn command(&self) -> Option<&Command>
pub const fn command(&self) -> Option<&Command>
Returns the required command without shell or argv interpretation.
Sourcepub const fn environment(&self) -> Option<&Environment>
pub const fn environment(&self) -> Option<&Environment>
Returns the hook-local environment without combining it with service environment values.
Sourcepub const fn privileged(&self) -> Option<&Located<BooleanValue>>
pub const fn privileged(&self) -> Option<&Located<BooleanValue>>
Returns the explicit hook privilege choice.
Sourcepub const fn user(&self) -> Option<&Located<String>>
pub const fn user(&self) -> Option<&Located<String>>
Returns the strict YAML-string hook user without default resolution.
Sourcepub const fn working_dir(&self) -> Option<&Located<String>>
pub const fn working_dir(&self) -> Option<&Located<String>>
Returns the strict YAML-string hook working directory without path resolution.
Sourcepub fn extension_fields(&self) -> &[FieldReference]
pub fn extension_fields(&self) -> &[FieldReference]
Returns retained hook x-* members.
Sourcepub fn unknown_fields(&self) -> &[FieldReference]
pub fn unknown_fields(&self) -> &[FieldReference]
Returns malformed, duplicate, and unknown hook members.
Trait Implementations§
Source§impl Clone for ServiceHook
impl Clone for ServiceHook
Source§fn clone(&self) -> ServiceHook
fn clone(&self) -> ServiceHook
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 ServiceHook
impl Debug for ServiceHook
impl Eq for ServiceHook
Source§impl PartialEq for ServiceHook
impl PartialEq for ServiceHook
impl StructuralPartialEq for ServiceHook
Auto Trait Implementations§
impl Freeze for ServiceHook
impl RefUnwindSafe for ServiceHook
impl Send for ServiceHook
impl Sync for ServiceHook
impl Unpin for ServiceHook
impl UnsafeUnpin for ServiceHook
impl UnwindSafe for ServiceHook
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