pub struct ProjectServiceHook { /* private fields */ }Expand description
One effective post-start hook with independently retained member provenance.
Implementations§
Source§impl ProjectServiceHook
impl ProjectServiceHook
Sourcepub const fn command(&self) -> Option<&ProjectValue<Command>>
pub const fn command(&self) -> Option<&ProjectValue<Command>>
Returns the required command without shell or argv interpretation.
Sourcepub const fn environment(&self) -> Option<&ProjectValue<ProjectEnvironment>>
pub const fn environment(&self) -> Option<&ProjectValue<ProjectEnvironment>>
Returns the local environment without combining it with service environment values.
Sourcepub const fn privileged(&self) -> Option<&ProjectValue<BooleanValue>>
pub const fn privileged(&self) -> Option<&ProjectValue<BooleanValue>>
Returns the explicit hook privilege choice.
Sourcepub const fn user(&self) -> Option<&ProjectValue<String>>
pub const fn user(&self) -> Option<&ProjectValue<String>>
Returns the strict YAML-string hook user without default resolution.
Sourcepub const fn working_dir(&self) -> Option<&ProjectValue<String>>
pub const fn working_dir(&self) -> Option<&ProjectValue<String>>
Returns the strict YAML-string hook working directory without path resolution.
Sourcepub fn unmodeled_fields(&self) -> &[ProjectFieldReference]
pub fn unmodeled_fields(&self) -> &[ProjectFieldReference]
Returns malformed, duplicate, extension, and unknown hook members as evidence.
Trait Implementations§
Source§impl Clone for ProjectServiceHook
impl Clone for ProjectServiceHook
Source§fn clone(&self) -> ProjectServiceHook
fn clone(&self) -> ProjectServiceHook
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 ProjectServiceHook
impl Debug for ProjectServiceHook
impl Eq for ProjectServiceHook
Source§impl PartialEq for ProjectServiceHook
impl PartialEq for ProjectServiceHook
impl StructuralPartialEq for ProjectServiceHook
Auto Trait Implementations§
impl Freeze for ProjectServiceHook
impl RefUnwindSafe for ProjectServiceHook
impl Send for ProjectServiceHook
impl Sync for ProjectServiceHook
impl Unpin for ProjectServiceHook
impl UnsafeUnpin for ProjectServiceHook
impl UnwindSafe for ProjectServiceHook
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