pub enum Resume {
Unsupported,
Supported {
start: &'static [&'static str],
subcommand: &'static [&'static str],
options: &'static [&'static str],
positional: &'static [&'static str],
},
}Expand description
How a CLI continues an earlier conversation. {session} in any argument
is replaced by the conversation’s vendor session ID.
Variants§
Unsupported
Every call starts a fresh conversation.
Supported
Implementations§
Source§impl Resume
impl Resume
pub fn is_supported(self) -> bool
Sourcepub fn assigns_id(self) -> bool
pub fn assigns_id(self) -> bool
Whether SCV chooses the vendor session ID when a conversation starts.
Trait Implementations§
impl Copy for Resume
impl Eq for Resume
impl StructuralPartialEq for Resume
Auto Trait Implementations§
impl Freeze for Resume
impl RefUnwindSafe for Resume
impl Send for Resume
impl Sync for Resume
impl Unpin for Resume
impl UnsafeUnpin for Resume
impl UnwindSafe for Resume
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.