pub struct McpApprovalResponseResource {
pub id: String,
pub approval_request_id: String,
pub approve: bool,
pub reason: Option<String>,
}
Expand description
A response to an MCP approval request.
Fields§
§id: String
The unique ID of the approval response
approval_request_id: String
The ID of the approval request being answered.
approve: bool
Whether the request was approved.
reason: Option<String>
Optional reason for the decision.
Implementations§
Source§impl McpApprovalResponseResource
impl McpApprovalResponseResource
Sourcepub fn builder() -> McpApprovalResponseResourceBuilder<((), (), (), ())>
pub fn builder() -> McpApprovalResponseResourceBuilder<((), (), (), ())>
Create a builder for building McpApprovalResponseResource
.
On the builder, call .id(...)
, .approval_request_id(...)
, .approve(...)
, .reason(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of McpApprovalResponseResource
.
Trait Implementations§
Source§impl Clone for McpApprovalResponseResource
impl Clone for McpApprovalResponseResource
Source§fn clone(&self) -> McpApprovalResponseResource
fn clone(&self) -> McpApprovalResponseResource
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 McpApprovalResponseResource
impl Debug for McpApprovalResponseResource
Source§impl<'de> Deserialize<'de> for McpApprovalResponseResource
impl<'de> Deserialize<'de> for McpApprovalResponseResource
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
impl StructuralPartialEq for McpApprovalResponseResource
Auto Trait Implementations§
impl Freeze for McpApprovalResponseResource
impl RefUnwindSafe for McpApprovalResponseResource
impl Send for McpApprovalResponseResource
impl Sync for McpApprovalResponseResource
impl Unpin for McpApprovalResponseResource
impl UnwindSafe for McpApprovalResponseResource
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