pub enum ToolTypePolicy {
Passthrough,
FlattenNamespace,
HardError,
}Expand description
How encode treats unknown / namespaced tool types.
Variants§
Passthrough
Forward the tool type as-is.
FlattenNamespace
Flatten namespace.tool into the target dialect.
HardError
Fail the map.
Trait Implementations§
Source§impl Clone for ToolTypePolicy
impl Clone for ToolTypePolicy
impl Copy for ToolTypePolicy
Source§impl Debug for ToolTypePolicy
impl Debug for ToolTypePolicy
Source§impl Default for ToolTypePolicy
impl Default for ToolTypePolicy
Source§impl<'de> Deserialize<'de> for ToolTypePolicy
impl<'de> Deserialize<'de> for ToolTypePolicy
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ToolTypePolicy
Source§impl PartialEq for ToolTypePolicy
impl PartialEq for ToolTypePolicy
Source§impl Serialize for ToolTypePolicy
impl Serialize for ToolTypePolicy
impl StructuralPartialEq for ToolTypePolicy
Auto Trait Implementations§
impl Forget for ToolTypePolicy
impl Freeze for ToolTypePolicy
impl RefUnwindSafe for ToolTypePolicy
impl Send for ToolTypePolicy
impl Sync for ToolTypePolicy
impl Unpin for ToolTypePolicy
impl UnsafeUnpin for ToolTypePolicy
impl UnwindSafe for ToolTypePolicy
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