pub struct ProviderFragment {
pub fragment_version: String,
pub provider: String,
pub engine: String,
pub mode: Option<String>,
pub capabilities: HashMap<String, ProfileEntrySpec>,
pub tools: HashMap<String, ToolBindingSpec>,
}Expand description
A single provider fragment: a partial target definition. Field names are snake_case to match the fragment YAML verbatim.
Fields§
§fragment_version: String§provider: String§engine: String§mode: Option<String>Restrict to one mode ("headless" | "interactive"); omitted ⇒ both. A fragment whose mode
does not match is skipped rather than rejected, so one file can carry both halves.
capabilities: HashMap<String, ProfileEntrySpec>§tools: HashMap<String, ToolBindingSpec>Trait Implementations§
Source§impl Clone for ProviderFragment
impl Clone for ProviderFragment
Source§fn clone(&self) -> ProviderFragment
fn clone(&self) -> ProviderFragment
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ProviderFragment
impl Debug for ProviderFragment
Source§impl<'de> Deserialize<'de> for ProviderFragment
impl<'de> Deserialize<'de> for ProviderFragment
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
Auto Trait Implementations§
impl Freeze for ProviderFragment
impl RefUnwindSafe for ProviderFragment
impl Send for ProviderFragment
impl Sync for ProviderFragment
impl Unpin for ProviderFragment
impl UnsafeUnpin for ProviderFragment
impl UnwindSafe for ProviderFragment
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