#[non_exhaustive]pub enum ArgumentSource {
User,
Inferred,
Server {
read: ReadToolKey,
},
}Expand description
Where an argument’s value comes from.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
User
The user states it; a verifier checks they did.
Inferred
The model may deduce it from what the user said; a verifier checks it is consistent.
Server
Code fills it from a declared read after the plan exists. The model never sees it.
Fields
§
read: ReadToolKeyThe read that supplies it.
Trait Implementations§
Source§impl Clone for ArgumentSource
impl Clone for ArgumentSource
Source§impl Debug for ArgumentSource
impl Debug for ArgumentSource
Source§impl Default for ArgumentSource
impl Default for ArgumentSource
Source§impl<'de> Deserialize<'de> for ArgumentSource
impl<'de> Deserialize<'de> for ArgumentSource
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ArgumentSource
Source§impl PartialEq for ArgumentSource
impl PartialEq for ArgumentSource
Source§impl Serialize for ArgumentSource
impl Serialize for ArgumentSource
impl StructuralPartialEq for ArgumentSource
Auto Trait Implementations§
impl Freeze for ArgumentSource
impl RefUnwindSafe for ArgumentSource
impl Send for ArgumentSource
impl Sync for ArgumentSource
impl Unpin for ArgumentSource
impl UnsafeUnpin for ArgumentSource
impl UnwindSafe for ArgumentSource
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.