pub struct NormalizedToolGrant {
pub server_id: String,
pub tool_name: String,
pub operations: Vec<NormalizedOperation>,
pub constraints: Vec<NormalizedConstraint>,
pub max_invocations: Option<u32>,
pub max_cost_per_invocation: Option<NormalizedMonetaryAmount>,
pub max_total_cost: Option<NormalizedMonetaryAmount>,
pub dpop_required: Option<bool>,
}Expand description
Proof-facing tool grant.
Fields§
§server_id: String§tool_name: String§operations: Vec<NormalizedOperation>§constraints: Vec<NormalizedConstraint>§max_invocations: Option<u32>§max_cost_per_invocation: Option<NormalizedMonetaryAmount>§max_total_cost: Option<NormalizedMonetaryAmount>§dpop_required: Option<bool>Implementations§
Source§impl NormalizedToolGrant
impl NormalizedToolGrant
Sourcepub fn is_subset_of(&self, parent: &Self) -> bool
pub fn is_subset_of(&self, parent: &Self) -> bool
Mirrors ToolGrant::is_subset_of over the normalized proof-facing AST.
Trait Implementations§
Source§impl Clone for NormalizedToolGrant
impl Clone for NormalizedToolGrant
Source§fn clone(&self) -> NormalizedToolGrant
fn clone(&self) -> NormalizedToolGrant
Returns a duplicate of the value. Read more
1.0.0 · 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 NormalizedToolGrant
impl Debug for NormalizedToolGrant
Source§impl<'de> Deserialize<'de> for NormalizedToolGrant
impl<'de> Deserialize<'de> for NormalizedToolGrant
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
Source§impl PartialEq for NormalizedToolGrant
impl PartialEq for NormalizedToolGrant
Source§impl Serialize for NormalizedToolGrant
impl Serialize for NormalizedToolGrant
Source§impl TryFrom<&ToolGrant> for NormalizedToolGrant
impl TryFrom<&ToolGrant> for NormalizedToolGrant
impl Eq for NormalizedToolGrant
impl StructuralPartialEq for NormalizedToolGrant
Auto Trait Implementations§
impl Freeze for NormalizedToolGrant
impl RefUnwindSafe for NormalizedToolGrant
impl Send for NormalizedToolGrant
impl Sync for NormalizedToolGrant
impl Unpin for NormalizedToolGrant
impl UnsafeUnpin for NormalizedToolGrant
impl UnwindSafe for NormalizedToolGrant
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