pub struct ExternalToolDeclaration {
pub name: String,
pub description: String,
pub effect: EffectKind,
pub risk: RiskClass,
pub schema: Value,
pub footprint: Option<FootprintSpec>,
}Expand description
A tool declaration received from an external server, before admission.
Fields§
§name: String§description: String§effect: EffectKind§risk: RiskClass§schema: Value§footprint: Option<FootprintSpec>None means the server declared nothing: fail closed.
Trait Implementations§
Source§impl Clone for ExternalToolDeclaration
impl Clone for ExternalToolDeclaration
Source§fn clone(&self) -> ExternalToolDeclaration
fn clone(&self) -> ExternalToolDeclaration
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 ExternalToolDeclaration
impl Debug for ExternalToolDeclaration
Source§impl PartialEq for ExternalToolDeclaration
impl PartialEq for ExternalToolDeclaration
Source§fn eq(&self, other: &ExternalToolDeclaration) -> bool
fn eq(&self, other: &ExternalToolDeclaration) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ExternalToolDeclaration
Auto Trait Implementations§
impl Freeze for ExternalToolDeclaration
impl RefUnwindSafe for ExternalToolDeclaration
impl Send for ExternalToolDeclaration
impl Sync for ExternalToolDeclaration
impl Unpin for ExternalToolDeclaration
impl UnsafeUnpin for ExternalToolDeclaration
impl UnwindSafe for ExternalToolDeclaration
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,
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.