Struct websocket::header::extensions::Parameter
[−]
[src]
pub struct Parameter { pub name: String, pub value: Option<String>, }
A parameter for an Extension
Fields
name: String
The name of this parameter
value: Option<String>
The value of this parameter, if any
Methods
impl Parameter
[src]
pub fn new(name: String, value: Option<String>) -> Parameter
[src]
Creates a new parameter with the given name and value
Trait Implementations
impl PartialEq for Parameter
[src]
fn eq(&self, __arg_0: &Parameter) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Parameter) -> bool
[src]
This method tests for !=
.
impl Clone for Parameter
[src]
fn clone(&self) -> Parameter
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for Parameter
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more