pub enum CommandRef {
Bang,
HeadersHelper,
}Expand description
A native way to get a value by running a command at connect time.
Variants§
Bang
A whole value of !command in env or headers (Pi, omp).
HeadersHelper
An entry-level headersHelper command printing a JSON object of
headers (Claude Code, http and sse).
Trait Implementations§
Source§impl Clone for CommandRef
impl Clone for CommandRef
impl Copy for CommandRef
Source§impl Debug for CommandRef
impl Debug for CommandRef
impl Eq for CommandRef
Source§impl PartialEq for CommandRef
impl PartialEq for CommandRef
impl StructuralPartialEq for CommandRef
Auto Trait Implementations§
impl Forget for CommandRef
impl Freeze for CommandRef
impl Move for CommandRef
impl RefUnwindSafe for CommandRef
impl Send for CommandRef
impl Sync for CommandRef
impl Unpin for CommandRef
impl UnsafeUnpin for CommandRef
impl UnwindSafe for CommandRef
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.