pub struct Bearer(/* private fields */);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 Freeze for Bearer
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