pub struct OAuthEndpoints {
pub device_authorization_endpoint: String,
pub token_endpoint: String,
pub client_id: String,
pub scope: Option<String>,
}Expand description
The endpoints/identity an MCP server’s OAuth device-code flow needs. Carries no token — see the module doc comment.
Fields§
RFC 8628 device authorization endpoint.
token_endpoint: StringToken endpoint (also used for the refresh-token grant).
client_id: StringOAuth client id.
scope: Option<String>Optional scope string.
Trait Implementations§
Source§impl Clone for OAuthEndpoints
impl Clone for OAuthEndpoints
Source§fn clone(&self) -> OAuthEndpoints
fn clone(&self) -> OAuthEndpoints
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for OAuthEndpoints
impl RefUnwindSafe for OAuthEndpoints
impl Send for OAuthEndpoints
impl Sync for OAuthEndpoints
impl Unpin for OAuthEndpoints
impl UnsafeUnpin for OAuthEndpoints
impl UnwindSafe for OAuthEndpoints
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