#[non_exhaustive]pub struct DeleteSessionRequest {
pub session_id: SessionId,
pub meta: Option<Map<String, Value>>,
}unstable_protocol_v2 only.Expand description
Request parameters for deleting an existing session from session/list.
Only available if the Agent supports the session.delete capability.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.session_id: SessionIdThe ID of the session to delete.
meta: Option<Map<String, Value>>The _meta property is reserved by ACP to allow clients and agents to attach additional
metadata to their interactions. Omitted and null are equivalent and mean no metadata.
Implementations MUST NOT make assumptions about values at these keys.
See protocol docs: Extensibility
Implementations§
Source§impl DeleteSessionRequest
impl DeleteSessionRequest
Sourcepub fn new(session_id: impl Into<SessionId>) -> DeleteSessionRequest
pub fn new(session_id: impl Into<SessionId>) -> DeleteSessionRequest
Builds DeleteSessionRequest with the required request fields set; optional fields start unset or empty.
Sourcepub fn meta(
self,
meta: impl IntoOption<Map<String, Value>>,
) -> DeleteSessionRequest
pub fn meta( self, meta: impl IntoOption<Map<String, Value>>, ) -> DeleteSessionRequest
The _meta property is reserved by ACP to allow clients and agents to attach additional metadata to their interactions. Implementations MUST NOT make assumptions about values at these keys.
See protocol docs: Extensibility
Trait Implementations§
Source§impl Clone for DeleteSessionRequest
impl Clone for DeleteSessionRequest
Source§fn clone(&self) -> DeleteSessionRequest
fn clone(&self) -> DeleteSessionRequest
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for DeleteSessionRequest
impl Debug for DeleteSessionRequest
Source§impl<'de> Deserialize<'de> for DeleteSessionRequest
impl<'de> Deserialize<'de> for DeleteSessionRequest
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<DeleteSessionRequest, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<DeleteSessionRequest, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
impl Eq for DeleteSessionRequest
Source§impl JsonRpcMessage for DeleteSessionRequest
impl JsonRpcMessage for DeleteSessionRequest
Source§fn matches_method(method: &str) -> bool
fn matches_method(method: &str) -> bool
Source§fn to_untyped_message(&self) -> Result<UntypedMessage, Error>
fn to_untyped_message(&self) -> Result<UntypedMessage, Error>
Source§impl JsonRpcRequest for DeleteSessionRequest
impl JsonRpcRequest for DeleteSessionRequest
Source§type Response = DeleteSessionResponse
type Response = DeleteSessionResponse
Source§impl JsonSchema for DeleteSessionRequest
impl JsonSchema for DeleteSessionRequest
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreSource§impl PartialEq for DeleteSessionRequest
impl PartialEq for DeleteSessionRequest
Source§impl Serialize for DeleteSessionRequest
impl Serialize for DeleteSessionRequest
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,
impl StructuralPartialEq for DeleteSessionRequest
Auto Trait Implementations§
impl Freeze for DeleteSessionRequest
impl RefUnwindSafe for DeleteSessionRequest
impl Send for DeleteSessionRequest
impl Sync for DeleteSessionRequest
impl Unpin for DeleteSessionRequest
impl UnsafeUnpin for DeleteSessionRequest
impl UnwindSafe for DeleteSessionRequest
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
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.