pub struct RuntimeHttpCredential { /* private fields */ }Expand description
One bearer credential and its exact SDK authorization grant.
Implementations§
Source§impl RuntimeHttpCredential
impl RuntimeHttpCredential
Sourcepub fn new(
token: impl Into<Arc<str>>,
authorization: RuntimeAuthorization,
) -> Self
pub fn new( token: impl Into<Arc<str>>, authorization: RuntimeAuthorization, ) -> Self
Create a scoped credential. Tokens are deliberately private and never
implement Debug or serialization.
Trait Implementations§
Source§impl Clone for RuntimeHttpCredential
impl Clone for RuntimeHttpCredential
Source§fn clone(&self) -> RuntimeHttpCredential
fn clone(&self) -> RuntimeHttpCredential
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 moreAuto Trait Implementations§
impl !RefUnwindSafe for RuntimeHttpCredential
impl !UnwindSafe for RuntimeHttpCredential
impl Freeze for RuntimeHttpCredential
impl Send for RuntimeHttpCredential
impl Sync for RuntimeHttpCredential
impl Unpin for RuntimeHttpCredential
impl UnsafeUnpin for RuntimeHttpCredential
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