Struct cometd_client::types::access_token::Bearer
source · pub struct Bearer(_);
Expand description
Bearer
can be used as AccessToken
for bearer authorization (‘authorization: Bearer f0596451-af4d-40f4-a290-b5e8372c110b’).
Example
let access_token = Bearer::new("f0596451-af4d-40f4-a290-b5e8372c110b");
let client = CometdClientBuilder::new(&"http://[::1]:1025/".parse()?)
.access_token(access_token)
.build::<()>()?;
Implementations§
Trait Implementations§
source§impl AccessToken for Bearer
impl AccessToken for Bearer
Return reference to array of pairs
(<HeaderName>, <HeaderValue>)
.Auto Trait Implementations§
impl RefUnwindSafe for Bearer
impl Send for Bearer
impl Sync for Bearer
impl Unpin for Bearer
impl UnwindSafe for Bearer
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