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