pub enum SecretCommandHome {
Private,
User,
}Expand description
home: of a command source: what the program finds in HOME.
Variants§
Private
An empty folder of its own under OpenMoat’s state directory: the program reads no dotfile of the person’s, nor one the agent planted.
User
The person’s home: for a tool that keeps its login there (~/.vault-token).
The program then reads files there the agent may be able to change.
Implementations§
Source§impl CommandHome
impl CommandHome
Sourcepub fn is_private(&self) -> bool
pub fn is_private(&self) -> bool
Whether this is the default, CommandHome::Private.
Trait Implementations§
Source§impl Clone for CommandHome
impl Clone for CommandHome
impl Copy for CommandHome
Source§impl Debug for CommandHome
impl Debug for CommandHome
Source§impl Default for CommandHome
impl Default for CommandHome
Source§impl<'de> Deserialize<'de> for CommandHome
impl<'de> Deserialize<'de> for CommandHome
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
impl Eq for CommandHome
Source§impl PartialEq for CommandHome
impl PartialEq for CommandHome
Source§impl Serialize for CommandHome
impl Serialize for CommandHome
impl StructuralPartialEq for CommandHome
Auto Trait Implementations§
impl Forget for CommandHome
impl Freeze for CommandHome
impl Move for CommandHome
impl RefUnwindSafe for CommandHome
impl Send for CommandHome
impl Sync for CommandHome
impl Unpin for CommandHome
impl UnsafeUnpin for CommandHome
impl UnwindSafe for CommandHome
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