#[non_exhaustive]pub struct SystemParameter {
pub name: String,
pub http_header: String,
pub url_query_parameter: String,
/* private fields */
}
Expand description
Define a parameter’s name and location. The parameter may be passed as either an HTTP header or a URL query parameter, and if both are passed the behavior is implementation-dependent.
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.name: String
Define the name of the parameter, such as “api_key” . It is case sensitive.
http_header: String
Define the HTTP header name to use for the parameter. It is case insensitive.
url_query_parameter: String
Define the URL query parameter name to use for the parameter. It is case sensitive.
Implementations§
Source§impl SystemParameter
impl SystemParameter
pub fn new() -> Self
Sourcepub fn set_http_header<T: Into<String>>(self, v: T) -> Self
pub fn set_http_header<T: Into<String>>(self, v: T) -> Self
Sets the value of http_header.
Sourcepub fn set_url_query_parameter<T: Into<String>>(self, v: T) -> Self
pub fn set_url_query_parameter<T: Into<String>>(self, v: T) -> Self
Sets the value of url_query_parameter.
Trait Implementations§
Source§impl Clone for SystemParameter
impl Clone for SystemParameter
Source§fn clone(&self) -> SystemParameter
fn clone(&self) -> SystemParameter
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 SystemParameter
impl Debug for SystemParameter
Source§impl Default for SystemParameter
impl Default for SystemParameter
Source§fn default() -> SystemParameter
fn default() -> SystemParameter
Returns the “default value” for a type. Read more
Source§impl Message for SystemParameter
impl Message for SystemParameter
Source§impl PartialEq for SystemParameter
impl PartialEq for SystemParameter
impl StructuralPartialEq for SystemParameter
Auto Trait Implementations§
impl Freeze for SystemParameter
impl RefUnwindSafe for SystemParameter
impl Send for SystemParameter
impl Sync for SystemParameter
impl Unpin for SystemParameter
impl UnwindSafe for SystemParameter
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