pub struct BearerAuth {
pub token: String,
}Expand description
What the consumer presents to hackamore to authenticate for a service.
Fields§
§token: StringThe hackamore token (presented via X-Hackamore-Token, or Authorization: Bearer).
Implementations§
Trait Implementations§
Source§impl Clone for BearerAuth
impl Clone for BearerAuth
Source§fn clone(&self) -> BearerAuth
fn clone(&self) -> BearerAuth
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 BearerAuth
impl Debug for BearerAuth
Source§impl<'de> Deserialize<'de> for BearerAuth
impl<'de> Deserialize<'de> for BearerAuth
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for BearerAuth
impl JsonSchema for BearerAuth
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for BearerAuth
impl PartialEq for BearerAuth
Source§fn eq(&self, other: &BearerAuth) -> bool
fn eq(&self, other: &BearerAuth) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for BearerAuth
impl Serialize for BearerAuth
impl StructuralPartialEq for BearerAuth
Auto Trait Implementations§
impl Freeze for BearerAuth
impl RefUnwindSafe for BearerAuth
impl Send for BearerAuth
impl Sync for BearerAuth
impl Unpin for BearerAuth
impl UnsafeUnpin for BearerAuth
impl UnwindSafe for BearerAuth
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