pub struct AuthRequiredParams {
pub channel: Uri,
pub resource: String,
pub reason: Option<AuthRequiredReason>,
}Expand description
Sent by the server when a protected resource requires (re-)authentication.
This notification MAY be associated with any channel — for example, an
agent advertised on the root channel, or a per-session resource. The
channel field identifies the subscription the auth requirement belongs
to; the resource field carries the OAuth-protected resource identifier
(per RFC 9728).
Clients should obtain a fresh token and push it via the authenticate
command.
Fields§
§channel: UriChannel URI this notification belongs to
resource: StringThe protected resource identifier that requires authentication
reason: Option<AuthRequiredReason>Why authentication is required
Trait Implementations§
Source§impl Clone for AuthRequiredParams
impl Clone for AuthRequiredParams
Source§fn clone(&self) -> AuthRequiredParams
fn clone(&self) -> AuthRequiredParams
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 moreSource§impl Debug for AuthRequiredParams
impl Debug for AuthRequiredParams
Source§impl<'de> Deserialize<'de> for AuthRequiredParams
impl<'de> Deserialize<'de> for AuthRequiredParams
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 PartialEq for AuthRequiredParams
impl PartialEq for AuthRequiredParams
Source§fn eq(&self, other: &AuthRequiredParams) -> bool
fn eq(&self, other: &AuthRequiredParams) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for AuthRequiredParams
impl Serialize for AuthRequiredParams
impl StructuralPartialEq for AuthRequiredParams
Auto Trait Implementations§
impl Freeze for AuthRequiredParams
impl RefUnwindSafe for AuthRequiredParams
impl Send for AuthRequiredParams
impl Sync for AuthRequiredParams
impl Unpin for AuthRequiredParams
impl UnsafeUnpin for AuthRequiredParams
impl UnwindSafe for AuthRequiredParams
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