pub struct ProjectPreStartServiceHook { /* private fields */ }Expand description
One effective pre-start hook with independently retained member provenance.
Implementations§
Source§impl ProjectPreStartServiceHook
impl ProjectPreStartServiceHook
Sourcepub const fn command(&self) -> Option<&ProjectValue<Command>>
pub const fn command(&self) -> Option<&ProjectValue<Command>>
Returns the optional command without shell or argv interpretation.
Sourcepub const fn image(&self) -> Option<&ProjectValue<String>>
pub const fn image(&self) -> Option<&ProjectValue<String>>
Returns the strict raw hook image without image-reference 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 per_replica(&self) -> Option<&ProjectValue<BooleanValue>>
pub const fn per_replica(&self) -> Option<&ProjectValue<BooleanValue>>
Returns the explicit per-replica choice without injecting a default.
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 ProjectPreStartServiceHook
impl Clone for ProjectPreStartServiceHook
Source§fn clone(&self) -> ProjectPreStartServiceHook
fn clone(&self) -> ProjectPreStartServiceHook
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 ProjectPreStartServiceHook
impl Debug for ProjectPreStartServiceHook
impl Eq for ProjectPreStartServiceHook
impl StructuralPartialEq for ProjectPreStartServiceHook
Auto Trait Implementations§
impl Freeze for ProjectPreStartServiceHook
impl RefUnwindSafe for ProjectPreStartServiceHook
impl Send for ProjectPreStartServiceHook
impl Sync for ProjectPreStartServiceHook
impl Unpin for ProjectPreStartServiceHook
impl UnsafeUnpin for ProjectPreStartServiceHook
impl UnwindSafe for ProjectPreStartServiceHook
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