#[non_exhaustive]pub struct HTTPTokenAuth {
pub body: Option<HTTPBody>,
pub headers: Option<Vec<HTTPHeader>>,
pub tokens: Option<Vec<HTTPToken>>,
pub type_: HTTPTokenAuthType,
pub url_parameters: Option<Vec<UrlParam>>,
pub additional_properties: BTreeMap<String, Value>,
/* private fields */
}
Expand description
The definition of HTTPTokenAuth
object.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.body: Option<HTTPBody>
The definition of HTTPBody
object.
headers: Option<Vec<HTTPHeader>>
The HTTPTokenAuth
headers
.
tokens: Option<Vec<HTTPToken>>
The HTTPTokenAuth
tokens
.
type_: HTTPTokenAuthType
The definition of HTTPTokenAuthType
object.
url_parameters: Option<Vec<UrlParam>>
The HTTPTokenAuth
url_parameters
.
additional_properties: BTreeMap<String, Value>
Implementations§
Source§impl HTTPTokenAuth
impl HTTPTokenAuth
pub fn new(type_: HTTPTokenAuthType) -> HTTPTokenAuth
pub fn body(self, value: HTTPBody) -> Self
pub fn headers(self, value: Vec<HTTPHeader>) -> Self
pub fn tokens(self, value: Vec<HTTPToken>) -> Self
pub fn url_parameters(self, value: Vec<UrlParam>) -> Self
pub fn additional_properties(self, value: BTreeMap<String, Value>) -> Self
Trait Implementations§
Source§impl Clone for HTTPTokenAuth
impl Clone for HTTPTokenAuth
Source§fn clone(&self) -> HTTPTokenAuth
fn clone(&self) -> HTTPTokenAuth
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 HTTPTokenAuth
impl Debug for HTTPTokenAuth
Source§impl<'de> Deserialize<'de> for HTTPTokenAuth
impl<'de> Deserialize<'de> for HTTPTokenAuth
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 PartialEq for HTTPTokenAuth
impl PartialEq for HTTPTokenAuth
Source§impl Serialize for HTTPTokenAuth
impl Serialize for HTTPTokenAuth
impl StructuralPartialEq for HTTPTokenAuth
Auto Trait Implementations§
impl Freeze for HTTPTokenAuth
impl RefUnwindSafe for HTTPTokenAuth
impl Send for HTTPTokenAuth
impl Sync for HTTPTokenAuth
impl Unpin for HTTPTokenAuth
impl UnwindSafe for HTTPTokenAuth
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