pub struct ModeProfile {
pub agent: &'static str,
pub agent_info: (&'static str, &'static str),
pub config_id: Option<&'static str>,
pub unconfigured_start: &'static str,
pub ask_first: Option<&'static str>,
pub values: &'static [(&'static str, Option<&'static str>)],
pub guard: Option<(&'static str, &'static str)>,
pub launch_env: Option<(&'static str, &'static str)>,
pub recorded: bool,
}Expand description
What one adapter version advertises, recorded from its own output.
Fields§
§agent: &'static strThe preset it belongs to.
agent_info: (&'static str, &'static str)The initialize response’s agentInfo name and version, exactly.
config_id: Option<&'static str>Some(id) for a config option, None for session modes.
unconfigured_start: &'static strWhere the adapter opens when nothing is configured.
ask_first: Option<&'static str>The value that asks before acting.
values: &'static [(&'static str, Option<&'static str>)]Each advertised value: None asks, Some(what) decides that alone.
guard: Option<(&'static str, &'static str)>A second option that can turn asking off whatever the mode (its id, and the value that keeps asking on).
launch_env: Option<(&'static str, &'static str)>What makes the agent ask at all, set where it starts (a variable and its value) when the person configured no mode: an agent whose modes do not govern permissions.
recorded: boolIts values were recorded from the adapter’s own output; false
(built from its source): what they decide is not known.
Implementations§
Trait Implementations§
Source§impl Clone for ModeProfile
impl Clone for ModeProfile
Source§impl Debug for ModeProfile
impl Debug for ModeProfile
impl Eq for ModeProfile
Source§impl PartialEq for ModeProfile
impl PartialEq for ModeProfile
impl StructuralPartialEq for ModeProfile
Auto Trait Implementations§
impl Freeze for ModeProfile
impl RefUnwindSafe for ModeProfile
impl Send for ModeProfile
impl Sync for ModeProfile
impl Unpin for ModeProfile
impl UnsafeUnpin for ModeProfile
impl UnwindSafe for ModeProfile
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoMaybeUndefined<T> for T
impl<T> IntoMaybeUndefined<T> for T
Source§fn into_maybe_undefined(self) -> MaybeUndefined<T>
fn into_maybe_undefined(self) -> MaybeUndefined<T>
Converts this value into a three-state builder argument.
Source§impl<T> IntoOption<T> for T
impl<T> IntoOption<T> for T
Source§fn into_option(self) -> Option<T>
fn into_option(self) -> Option<T>
Converts this value into an optional builder argument.
Creates a shared type from an unshared type.