pub struct MCPAuthInfo {
pub token: String,
pub token_type: String,
pub expires_at: Option<SystemTime>,
pub permissions: Vec<String>,
}
Expand description
MCP authentication information
Fields§
§token: String
Authentication token
token_type: String
Token type
expires_at: Option<SystemTime>
Token expiration
permissions: Vec<String>
Granted permissions
Trait Implementations§
Source§impl Clone for MCPAuthInfo
impl Clone for MCPAuthInfo
Source§fn clone(&self) -> MCPAuthInfo
fn clone(&self) -> MCPAuthInfo
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for MCPAuthInfo
impl RefUnwindSafe for MCPAuthInfo
impl Send for MCPAuthInfo
impl Sync for MCPAuthInfo
impl Unpin for MCPAuthInfo
impl UnwindSafe for MCPAuthInfo
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