pub struct DynamicClientRegistration { /* private fields */ }Expand description
Dynamic Client Registration Manager for RFC 7591 compliance
Implementations§
Source§impl DynamicClientRegistration
impl DynamicClientRegistration
Sourcepub fn new(registration_endpoint: String) -> Self
pub fn new(registration_endpoint: String) -> Self
Create a new dynamic client registration manager
Sourcepub async fn register_client(
&self,
request: ClientRegistrationRequest,
) -> McpResult<ClientRegistrationResponse>
pub async fn register_client( &self, request: ClientRegistrationRequest, ) -> McpResult<ClientRegistrationResponse>
Register a new OAuth client dynamically (RFC 7591)
Sourcepub fn create_mcp_client_request(
client_name: &str,
redirect_uris: Vec<String>,
mcp_server_uri: &str,
) -> ClientRegistrationRequest
pub fn create_mcp_client_request( client_name: &str, redirect_uris: Vec<String>, mcp_server_uri: &str, ) -> ClientRegistrationRequest
Create a default MCP client registration request
Trait Implementations§
Source§impl Clone for DynamicClientRegistration
impl Clone for DynamicClientRegistration
Source§fn clone(&self) -> DynamicClientRegistration
fn clone(&self) -> DynamicClientRegistration
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 moreAuto Trait Implementations§
impl Freeze for DynamicClientRegistration
impl !RefUnwindSafe for DynamicClientRegistration
impl Send for DynamicClientRegistration
impl Sync for DynamicClientRegistration
impl Unpin for DynamicClientRegistration
impl !UnwindSafe for DynamicClientRegistration
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