pub enum Attenuation {
RemoveTool {
server_id: String,
tool_name: String,
},
RemoveOperation {
server_id: String,
tool_name: String,
operation: Operation,
},
AddConstraint {
server_id: String,
tool_name: String,
constraint: Constraint,
},
ReduceBudget {
server_id: String,
tool_name: String,
max_invocations: u32,
},
ShortenExpiry {
new_expires_at: u64,
},
ReduceCostPerInvocation {
server_id: String,
tool_name: String,
max_cost_per_invocation: MonetaryAmount,
},
ReduceTotalCost {
server_id: String,
tool_name: String,
max_total_cost: MonetaryAmount,
},
}Expand description
Describes how a scope was narrowed during delegation.
Variants§
RemoveTool
A tool was removed from the scope.
RemoveOperation
An operation was removed from a tool grant.
AddConstraint
A constraint was added to a tool grant.
ReduceBudget
The invocation budget was reduced.
ShortenExpiry
The expiration was shortened.
ReduceCostPerInvocation
The per-invocation cost cap was tightened during delegation.
ReduceTotalCost
The total cost budget was reduced during delegation.
Trait Implementations§
Source§impl Clone for Attenuation
impl Clone for Attenuation
Source§fn clone(&self) -> Attenuation
fn clone(&self) -> Attenuation
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 Attenuation
impl Debug for Attenuation
Source§impl<'de> Deserialize<'de> for Attenuation
impl<'de> Deserialize<'de> for Attenuation
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Attenuation, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Attenuation, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for Attenuation
impl PartialEq for Attenuation
Source§impl Serialize for Attenuation
impl Serialize for Attenuation
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for Attenuation
impl StructuralPartialEq for Attenuation
Auto Trait Implementations§
impl Freeze for Attenuation
impl RefUnwindSafe for Attenuation
impl Send for Attenuation
impl Sync for Attenuation
impl Unpin for Attenuation
impl UnsafeUnpin for Attenuation
impl UnwindSafe for Attenuation
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