pub struct AuthenticateParams {
pub channel: Uri,
pub resource: String,
pub token: String,
}Expand description
Pushes a Bearer token for a protected resource. The resource field MUST
match a ProtectedResourceMetadata.resource value declared by an agent
in AgentInfo.protectedResources.
Tokens are delivered using RFC 6750 (Bearer Token Usage) semantics. The client obtains the token from the authorization server(s) listed in the resource’s metadata and pushes it to the server via this command.
Fields§
§channel: UriChannel URI this command targets.
resource: StringThe protected resource identifier. MUST match a resource value from
ProtectedResourceMetadata declared in AgentInfo.protectedResources.
token: StringBearer token obtained from the resource’s authorization server
Trait Implementations§
Source§impl Clone for AuthenticateParams
impl Clone for AuthenticateParams
Source§fn clone(&self) -> AuthenticateParams
fn clone(&self) -> AuthenticateParams
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 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 PartialEq for AuthenticateParams
impl PartialEq for AuthenticateParams
Source§fn eq(&self, other: &AuthenticateParams) -> bool
fn eq(&self, other: &AuthenticateParams) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for AuthenticateParams
impl Serialize for AuthenticateParams
impl StructuralPartialEq for AuthenticateParams
Auto Trait Implementations§
impl Freeze for AuthenticateParams
impl RefUnwindSafe for AuthenticateParams
impl Send for AuthenticateParams
impl Sync for AuthenticateParams
impl Unpin for AuthenticateParams
impl UnsafeUnpin 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