Struct websocket::header::extensions::Parameter [] [src]

pub struct Parameter {
    pub name: String,
    pub value: Option<String>,
}

A parameter for an Extension

Fields

name

The name of this parameter

value

The value of this parameter, if any

Methods

impl Parameter

fn new(name: String, value: Option<String>) -> Parameter

Creates a new parameter with the given name and value

Trait Implementations

impl Display for Parameter

fn fmt(&self, f: &mut Formatter) -> Result

Derived Implementations

impl Debug for Parameter

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl Clone for Parameter

fn clone(&self) -> Parameter

1.0.0fn clone_from(&mut self, source: &Self)

impl PartialEq for Parameter

fn eq(&self, __arg_0: &Parameter) -> bool

fn ne(&self, __arg_0: &Parameter) -> bool