pub struct AuthRequest<'a> {
pub method: &'a str,
pub params: Option<&'a Value>,
pub request_id: u64,
}Expand description
Authentication request view used by providers.
Fields§
§method: &'a strJSON-RPC method name.
params: Option<&'a Value>Raw params payload (if present).
request_id: u64Internal request ID (u64) used for tracing.
Implementations§
Source§impl AuthRequest<'_>
impl AuthRequest<'_>
Sourcepub fn access_token(&self) -> Option<AccessToken>
pub fn access_token(&self) -> Option<AccessToken>
Attempts to extract an access token from the raw request params.
Trait Implementations§
Source§impl<'a> Clone for AuthRequest<'a>
impl<'a> Clone for AuthRequest<'a>
Source§fn clone(&self) -> AuthRequest<'a>
fn clone(&self) -> AuthRequest<'a>
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 moreSource§impl<'a> Debug for AuthRequest<'a>
impl<'a> Debug for AuthRequest<'a>
impl<'a> Copy for AuthRequest<'a>
Auto Trait Implementations§
impl<'a> Freeze for AuthRequest<'a>
impl<'a> RefUnwindSafe for AuthRequest<'a>
impl<'a> Send for AuthRequest<'a>
impl<'a> Sync for AuthRequest<'a>
impl<'a> Unpin for AuthRequest<'a>
impl<'a> UnwindSafe for AuthRequest<'a>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).