pub enum SessionCmd {
SnapshotListJson,
ShowObject {
oid: String,
},
}Expand description
The ONLY kopia invocations a browse session may issue. Closed enum — the
CLI/exec transport renders argv exclusively through this, so a mutating
verb is structurally impossible. A new variant cannot compile until
SessionCmd::argv (and its read-only test) accounts for it.
Variants§
SnapshotListJson
kopia snapshot list --json --all: the repository’s full snapshot
catalog (every user@host identity), parsed as
Vec<SnapshotListEntry>.
ShowObject
kopia show <oid>: a directory object’s manifest
(DirManifest JSON) or a file object’s raw bytes.
Implementations§
Trait Implementations§
Source§impl Clone for SessionCmd
impl Clone for SessionCmd
Source§fn clone(&self) -> SessionCmd
fn clone(&self) -> SessionCmd
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 SessionCmd
impl Debug for SessionCmd
Source§impl PartialEq for SessionCmd
impl PartialEq for SessionCmd
Source§fn eq(&self, other: &SessionCmd) -> bool
fn eq(&self, other: &SessionCmd) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for SessionCmd
impl StructuralPartialEq for SessionCmd
Auto Trait Implementations§
impl Freeze for SessionCmd
impl RefUnwindSafe for SessionCmd
impl Send for SessionCmd
impl Sync for SessionCmd
impl Unpin for SessionCmd
impl UnsafeUnpin for SessionCmd
impl UnwindSafe for SessionCmd
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