pub struct AuthenticateParams;
Expand description
Triggers authentication on the agent side.
This method should only be called if the initialize response indicates the user isn’t already authenticated. If this succceeds then the client can send other messasges to the agent, If it fails then the error message should be shown and the user prompted to authenticate.
The implementation of authentication is left up to the agent, typically an oauth flow is run by opening a browser window in the background.
Trait Implementations§
Source§impl AgentRequest for AuthenticateParams
impl AgentRequest for AuthenticateParams
type Response = ()
fn into_any(self) -> AnyAgentRequest
fn response_from_any(any: AnyAgentResult) -> Result<Self::Response, Error>
Source§impl Debug for AuthenticateParams
impl Debug for AuthenticateParams
Source§impl<'de> Deserialize<'de> for AuthenticateParams
impl<'de> Deserialize<'de> for AuthenticateParams
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
Source§impl JsonSchema for AuthenticateParams
impl JsonSchema for AuthenticateParams
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref
keyword. Read moreAuto Trait Implementations§
impl Freeze for AuthenticateParams
impl RefUnwindSafe for AuthenticateParams
impl Send for AuthenticateParams
impl Sync for AuthenticateParams
impl Unpin for AuthenticateParams
impl UnwindSafe for AuthenticateParams
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