Enum nginx_config::ast::Return [−][src]
pub enum Return {
Redirect {
code: Option<u32>,
url: Value,
},
Text {
code: u32,
text: Option<Value>,
},
}Variants
RedirectFields of Redirect
code: Option<u32> | |
url: Value |
TextFields of Text
code: u32 | |
text: Option<Value> |
Trait Implementations
impl Debug for Return[src]
impl Debug for Returnfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Clone for Return[src]
impl Clone for Returnfn clone(&self) -> Return[src]
fn clone(&self) -> ReturnReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl PartialEq for Return[src]
impl PartialEq for Returnfn eq(&self, other: &Return) -> bool[src]
fn eq(&self, other: &Return) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Return) -> bool[src]
fn ne(&self, other: &Return) -> boolThis method tests for !=.
impl Eq for Return[src]
impl Eq for Return