pub enum TargetId {
Headless,
Interactive,
CodexInteractive,
}Expand description
The two claude-code targets: engine × mode.
Variants§
Implementations§
Source§impl TargetId
impl TargetId
pub fn as_str(&self) -> &'static str
Sourcepub fn mode(&self) -> &'static str
pub fn mode(&self) -> &'static str
The mode half of engine × mode, which is what a provider fragment’s optional mode:
field is matched against.
pub fn parse(value: &str) -> Option<TargetId>
pub fn profile(&self) -> HashMap<String, CapabilityEntry>
Trait Implementations§
impl Copy for TargetId
impl Eq for TargetId
impl StructuralPartialEq for TargetId
Auto Trait Implementations§
impl Freeze for TargetId
impl RefUnwindSafe for TargetId
impl Send for TargetId
impl Sync for TargetId
impl Unpin for TargetId
impl UnsafeUnpin for TargetId
impl UnwindSafe for TargetId
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.