pub enum AuthorizationType {
Header,
BasicAuth,
QueryParam,
PathSegment,
ReplaceUrl,
}Expand description
Authorization approach: HTTP header, basic authentication, query parameter, or path segment in a Transitland Extended URL.
JSON schema
{
"description": "Authorization approach: HTTP header, basic authentication, query parameter, or path segment in a Transitland Extended URL.",
"type": "string",
"enum": [
"header",
"basic_auth",
"query_param",
"path_segment",
"replace_url"
]
}Variants§
Trait Implementations§
Source§impl Clone for AuthorizationType
impl Clone for AuthorizationType
Source§fn clone(&self) -> AuthorizationType
fn clone(&self) -> AuthorizationType
Returns a duplicate of the value. Read more
1.0.0 · 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 AuthorizationType
impl Debug for AuthorizationType
Source§impl<'de> Deserialize<'de> for AuthorizationType
impl<'de> Deserialize<'de> for AuthorizationType
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 Display for AuthorizationType
impl Display for AuthorizationType
Source§impl From<&AuthorizationType> for AuthorizationType
impl From<&AuthorizationType> for AuthorizationType
Source§fn from(value: &AuthorizationType) -> Self
fn from(value: &AuthorizationType) -> Self
Converts to this type from the input type.
Source§impl FromStr for AuthorizationType
impl FromStr for AuthorizationType
Source§impl Hash for AuthorizationType
impl Hash for AuthorizationType
Source§impl Ord for AuthorizationType
impl Ord for AuthorizationType
Source§fn cmp(&self, other: &AuthorizationType) -> Ordering
fn cmp(&self, other: &AuthorizationType) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for AuthorizationType
impl PartialEq for AuthorizationType
Source§impl PartialOrd for AuthorizationType
impl PartialOrd for AuthorizationType
Source§impl Serialize for AuthorizationType
impl Serialize for AuthorizationType
Source§impl TryFrom<&String> for AuthorizationType
impl TryFrom<&String> for AuthorizationType
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§impl TryFrom<&str> for AuthorizationType
impl TryFrom<&str> for AuthorizationType
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§impl TryFrom<String> for AuthorizationType
impl TryFrom<String> for AuthorizationType
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
impl Copy for AuthorizationType
impl Eq for AuthorizationType
impl StructuralPartialEq for AuthorizationType
Auto Trait Implementations§
impl Freeze for AuthorizationType
impl RefUnwindSafe for AuthorizationType
impl Send for AuthorizationType
impl Sync for AuthorizationType
impl Unpin for AuthorizationType
impl UnwindSafe for AuthorizationType
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