pub struct Session<'a> {
    pub version: Option<Version>,
    pub name: Option<SessionName<'a>>,
    pub timing: Option<Timing>,
    pub origin: Option<Origin<'a>>,
    pub band_width: Option<BandWidth>,
    pub uri: Option<Uri<'a>>,
    pub phone_number: Option<PhoneNumber<'a>>,
    pub email_address: Option<EmailAddress<'a>>,
    pub connection: Option<Connection>,
    pub description: Option<SessionInformation<'a>>,
    pub attributes: Vec<AttributeLine<'a>>,
    pub media: Vec<MediaSection<'a>>,
}

Fields

version: Option<Version>

v=0

name: Option<SessionName<'a>>

s=-

timing: Option<Timing>

t=0 0

origin: Option<Origin<'a>>

o=- 20518 0 IN IP4 203.0.113.1

band_width: Option<BandWidth>

b=AS:1024

uri: Option<Uri<'a>>

u=

phone_number: Option<PhoneNumber<'a>>

p=0118 999 881 999 119 7253

email_address: Option<EmailAddress<'a>>

“e=email@example.com”

connection: Option<Connection>

c=IN IP4 10.23.42.137

description: Option<SessionInformation<'a>>attributes: Vec<AttributeLine<'a>>media: Vec<MediaSection<'a>>

Implementations

Returns a version of self with all fields converted to owning versions.

Trait Implementations

Formats the value using the given formatter. Read more

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

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Converts the given value to a String. Read more

Formats the value using the given formatter

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.