pub struct SignInPrompt {
pub show_authorization_url: Box<dyn Fn(&str) + Send + Sync>,
pub redirect_url: Box<dyn Fn(CancellationToken) -> BoxFuture<'static, Option<String>> + Send + Sync>,
}Expand description
pi’s McpSignInPrompt: what a sign-in asks of the user.
Fields§
Shows the authorization URL and opens it in a browser.
redirect_url: Box<dyn Fn(CancellationToken) -> BoxFuture<'static, Option<String>> + Send + Sync>Asks for the redirect URL from the browser’s address bar, for when the
browser cannot reach the loopback callback. The token withdraws the
question once the callback arrives. None or empty text cancels the
sign-in.
Auto Trait Implementations§
impl !RefUnwindSafe for SignInPrompt
impl !UnwindSafe for SignInPrompt
impl Freeze for SignInPrompt
impl Send for SignInPrompt
impl Sync for SignInPrompt
impl Unpin for SignInPrompt
impl UnsafeUnpin for SignInPrompt
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