pub struct OauthAuth {
pub token_endpoint: String,
pub client_id: String,
pub access_token: SecretRef,
pub refresh_token: Option<SecretRef>,
pub expires_at: u64,
}Expand description
OAuth 2.1 state persisted alongside remote MCP entry.
Fields§
§token_endpoint: StringAuthorization-server token endpoint (from discovery).
client_id: StringClient id from dynamic client registration.
access_token: SecretRefKeychain ref to access token.
refresh_token: Option<SecretRef>Keychain ref refresh token, if server issued one.
expires_at: u64Unix-epoch seconds access token expires (0 = unknown).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for OauthAuth
impl<'de> Deserialize<'de> for OauthAuth
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 Eq for OauthAuth
impl StructuralPartialEq for OauthAuth
Auto Trait Implementations§
impl Freeze for OauthAuth
impl RefUnwindSafe for OauthAuth
impl Send for OauthAuth
impl Sync for OauthAuth
impl Unpin for OauthAuth
impl UnsafeUnpin for OauthAuth
impl UnwindSafe for OauthAuth
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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
Compare self to
key and return true if they are equal.