#[non_exhaustive]pub enum RequestPermissionSubject {
ToolCall(Box<ToolCallPermissionSubject>),
Other(OtherRequestPermissionSubject),
}Available on crate feature
unstable_protocol_v2 only.Expand description
The operation requiring permission.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
ToolCall(Box<ToolCallPermissionSubject>)
Permission is requested before executing a tool call.
Other(OtherRequestPermissionSubject)
Custom or future permission subject.
Values beginning with _ are reserved for implementation-specific
extensions. Unknown values that do not begin with _ are reserved for
future ACP variants.
Clients that do not understand this subject type should preserve the raw payload when storing, replaying, proxying, or forwarding permission requests, and otherwise display a generic permission prompt or decline it according to policy.
Trait Implementations§
Source§impl Clone for RequestPermissionSubject
impl Clone for RequestPermissionSubject
Source§fn clone(&self) -> RequestPermissionSubject
fn clone(&self) -> RequestPermissionSubject
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 RequestPermissionSubject
impl Debug for RequestPermissionSubject
Source§impl<'de> Deserialize<'de> for RequestPermissionSubject
impl<'de> Deserialize<'de> for RequestPermissionSubject
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<RequestPermissionSubject, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<RequestPermissionSubject, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<ToolCallPermissionSubject> for RequestPermissionSubject
impl From<ToolCallPermissionSubject> for RequestPermissionSubject
Source§fn from(subject: ToolCallPermissionSubject) -> RequestPermissionSubject
fn from(subject: ToolCallPermissionSubject) -> RequestPermissionSubject
Converts to this type from the input type.
Source§impl From<ToolCallUpdate> for RequestPermissionSubject
impl From<ToolCallUpdate> for RequestPermissionSubject
Source§fn from(tool_call: ToolCallUpdate) -> RequestPermissionSubject
fn from(tool_call: ToolCallUpdate) -> RequestPermissionSubject
Converts to this type from the input type.
Source§impl JsonSchema for RequestPermissionSubject
impl JsonSchema for RequestPermissionSubject
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for RequestPermissionSubject
impl PartialEq for RequestPermissionSubject
Source§fn eq(&self, other: &RequestPermissionSubject) -> bool
fn eq(&self, other: &RequestPermissionSubject) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for RequestPermissionSubject
impl Serialize for RequestPermissionSubject
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 RequestPermissionSubject
Auto Trait Implementations§
impl Freeze for RequestPermissionSubject
impl RefUnwindSafe for RequestPermissionSubject
impl Send for RequestPermissionSubject
impl Sync for RequestPermissionSubject
impl Unpin for RequestPermissionSubject
impl UnsafeUnpin for RequestPermissionSubject
impl UnwindSafe for RequestPermissionSubject
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<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoMaybeUndefined<T> for T
impl<T> IntoMaybeUndefined<T> for T
Source§fn into_maybe_undefined(self) -> MaybeUndefined<T>
fn into_maybe_undefined(self) -> MaybeUndefined<T>
Converts this value into a three-state builder argument.
Source§impl<T> IntoOption<T> for T
impl<T> IntoOption<T> for T
Source§fn into_option(self) -> Option<T>
fn into_option(self) -> Option<T>
Converts this value into an optional builder argument.