pub struct GuardMarker {
pub active: Option<bool>,
pub allowed_roots: Option<Vec<String>>,
pub expires_at: Option<String>,
}Expand description
The staged marker file that arms the guard. The guard is a no-op unless this file exists, is active, and has not expired — so a crashed run that never tore the hook down can’t silently block writes in the user’s next interactive session.
Fields§
§active: Option<bool>§allowed_roots: Option<Vec<String>>§expires_at: Option<String>Trait Implementations§
Source§impl Clone for GuardMarker
impl Clone for GuardMarker
Source§fn clone(&self) -> GuardMarker
fn clone(&self) -> GuardMarker
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 GuardMarker
impl Debug for GuardMarker
Source§impl Default for GuardMarker
impl Default for GuardMarker
Source§fn default() -> GuardMarker
fn default() -> GuardMarker
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GuardMarker
impl<'de> Deserialize<'de> for GuardMarker
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for GuardMarker
impl RefUnwindSafe for GuardMarker
impl Send for GuardMarker
impl Sync for GuardMarker
impl Unpin for GuardMarker
impl UnsafeUnpin for GuardMarker
impl UnwindSafe for GuardMarker
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