pub struct StaticVertexToken(/* private fields */);Expand description
A VertexTokenProvider that always returns the same, pre-fetched token
— e.g. the output of gcloud auth print-access-token.
Implementations§
Trait Implementations§
Source§impl Clone for StaticVertexToken
impl Clone for StaticVertexToken
Source§fn clone(&self) -> StaticVertexToken
fn clone(&self) -> StaticVertexToken
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 StaticVertexToken
impl Debug for StaticVertexToken
Source§impl VertexTokenProvider for StaticVertexToken
impl VertexTokenProvider for StaticVertexToken
Source§fn access_token(&self) -> Result<String>
fn access_token(&self) -> Result<String>
Return the current access token to send as
Authorization: Bearer <token>. Implementations that cache/refresh a token should do so
internally (e.g. behind a Mutex); this is called once per request.Auto Trait Implementations§
impl Freeze for StaticVertexToken
impl RefUnwindSafe for StaticVertexToken
impl Send for StaticVertexToken
impl Sync for StaticVertexToken
impl Unpin for StaticVertexToken
impl UnsafeUnpin for StaticVertexToken
impl UnwindSafe for StaticVertexToken
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