pub enum Resolution {
Unique(String),
Ambiguous(Vec<String>),
NoMatch,
}Expand description
Outcome of resolving a user-supplied -c <value> against the known
session ids of a project. See resolve_session_prefix.
Variants§
Unique(String)
Exactly one session id matched (a full id, or a unique prefix);
holds the full id to hand to claude’s --resume.
Ambiguous(Vec<String>)
More than one known session id shares the prefix; holds the candidates so the caller can list them in an error.
NoMatch
No known session id has input as a prefix. The caller passes the
value through to claude UNCHANGED – preserving claude’s own
session-TITLE resume (roba sets --name roba...) and any full id
that belongs to a different project.
Trait Implementations§
Source§impl Debug for Resolution
impl Debug for Resolution
impl Eq for Resolution
Source§impl PartialEq for Resolution
impl PartialEq for Resolution
Source§fn eq(&self, other: &Resolution) -> bool
fn eq(&self, other: &Resolution) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for Resolution
Auto Trait Implementations§
impl Freeze for Resolution
impl RefUnwindSafe for Resolution
impl Send for Resolution
impl Sync for Resolution
impl Unpin for Resolution
impl UnsafeUnpin for Resolution
impl UnwindSafe for Resolution
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