Struct forwarded_header_value::ForwardedStanza[][src]

pub struct ForwardedStanza {
    pub forwarded_by: Option<Identifier>,
    pub forwarded_for: Option<Identifier>,
    pub forwarded_host: Option<String>,
    pub forwarded_proto: Option<Protocol>,
}
Expand description

A single forwarded-for line; there may be a sequence of these in a Forwarded header.

Any parts not specified will be None

Fields

forwarded_by: Option<Identifier>forwarded_for: Option<Identifier>forwarded_host: Option<String>forwarded_proto: Option<Protocol>

Implementations

Get the forwarded-for IP, if one is present

Get the forwarded-by IP, if one is present

Trait Implementations

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

The associated error which can be returned from parsing.

Parses a string s to return a value of this type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.