pub struct AgentPolicy {
pub risk: OperationRisk,
pub confirmation: Confirmation,
pub idempotent: bool,
}Expand description
Protocol-neutral metadata used by MCP and other agent transports.
Fields§
§risk: OperationRisk§confirmation: Confirmation§idempotent: boolTrait Implementations§
Source§impl Clone for AgentPolicy
impl Clone for AgentPolicy
Source§fn clone(&self) -> AgentPolicy
fn clone(&self) -> AgentPolicy
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 AgentPolicy
impl Debug for AgentPolicy
Source§impl Default for AgentPolicy
impl Default for AgentPolicy
Source§fn default() -> AgentPolicy
fn default() -> AgentPolicy
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AgentPolicy
impl<'de> Deserialize<'de> for AgentPolicy
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<AgentPolicy, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<AgentPolicy, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for AgentPolicy
Source§impl PartialEq for AgentPolicy
impl PartialEq for AgentPolicy
Source§impl Serialize for AgentPolicy
impl Serialize for AgentPolicy
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 StructuralPartialEq for AgentPolicy
Auto Trait Implementations§
impl Freeze for AgentPolicy
impl RefUnwindSafe for AgentPolicy
impl Send for AgentPolicy
impl Sync for AgentPolicy
impl Unpin for AgentPolicy
impl UnsafeUnpin for AgentPolicy
impl UnwindSafe for AgentPolicy
Blanket Implementations§
Source§impl<T> BackgroundExt for T
impl<T> BackgroundExt for T
fn background(self, task: BackgroundTask) -> Background<Self>
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