Enum nginx_config::ast::Return [−][src]
pub enum Return { Redirect { code: Option<u32>, url: Value, }, Text { code: u32, text: Option<Value>, }, }
Variants
Redirect
Fields of Redirect
code: Option<u32> | |
url: Value |
Text
Fields of Text
code: u32 | |
text: Option<Value> |
Trait Implementations
impl Debug for Return
[src]
impl Debug for Return
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for Return
[src]
impl Clone for Return
fn clone(&self) -> Return
[src]
fn clone(&self) -> Return
Returns 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 Return
fn eq(&self, other: &Return) -> bool
[src]
fn eq(&self, other: &Return) -> bool
This 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) -> bool
This method tests for !=
.
impl Eq for Return
[src]
impl Eq for Return