Skip to main content

Session

Struct Session 

Source
pub struct Session(/* private fields */);
Expand description

A crate::Session builder.

Implementations§

Source§

impl Session

Source

pub fn new(origin: Origin, session_name: impl ToString) -> Self

Source

pub fn session_description(self, session_description: impl ToString) -> Self

Source

pub fn session_description_if( self, session_description: impl ToString, predicate: bool, ) -> Self

Source

pub fn session_description_if_some( self, session_description: Option<impl ToString>, ) -> Self

Source

pub fn uri(self, uri: impl ToString) -> Self

Source

pub fn uri_if(self, uri: impl ToString, predicate: bool) -> Self

Source

pub fn uri_if_some(self, uri: Option<impl ToString>) -> Self

Source

pub fn email(self, email: impl ToString) -> Self

Source

pub fn email_if(self, email: impl ToString, predicate: bool) -> Self

Source

pub fn email_if_some(self, email: Option<impl ToString>) -> Self

Source

pub fn emails(self, emails: impl IntoIterator<Item = impl ToString>) -> Self

Source

pub fn emails_if( self, emails: impl IntoIterator<Item = impl ToString>, predicate: bool, ) -> Self

Source

pub fn phone(self, phone: impl ToString) -> Self

Source

pub fn phone_if(self, phone: impl ToString, predicate: bool) -> Self

Source

pub fn phone_if_some(self, phone: Option<impl ToString>) -> Self

Source

pub fn phones(self, phones: impl IntoIterator<Item = impl ToString>) -> Self

Source

pub fn phones_if( self, phones: impl IntoIterator<Item = impl ToString>, predicate: bool, ) -> Self

Source

pub fn connection(self, connection: impl Into<Connection>) -> Self

Source

pub fn connection_if( self, connection: impl Into<Connection>, predicate: bool, ) -> Self

Source

pub fn connection_if_some( self, connection: Option<impl Into<Connection>>, ) -> Self

Source

pub fn bandwidth(self, bandwidth: Bandwidth) -> Self

Source

pub fn bandwidth_if(self, bandwidth: Bandwidth, predicate: bool) -> Self

Source

pub fn bandwidth_if_some(self, bandwidth: Option<Bandwidth>) -> Self

Source

pub fn bandwidths(self, bandwidths: impl IntoIterator<Item = Bandwidth>) -> Self

Source

pub fn bandwidths_if( self, bandwidths: impl IntoIterator<Item = Bandwidth>, predicate: bool, ) -> Self

Source

pub fn time(self, time: Time) -> Self

Source

pub fn time_if(self, time: Time, predicate: bool) -> Self

Source

pub fn time_if_some(self, time: Option<Time>) -> Self

Source

pub fn times(self, times: impl IntoIterator<Item = Time>) -> Self

Source

pub fn times_if( self, times: impl IntoIterator<Item = Time>, predicate: bool, ) -> Self

Source

pub fn times_if_some( self, times: Option<impl IntoIterator<Item = Time>>, ) -> Self

Source

pub fn time_zone(self, time_zone: TimeZone) -> Self

Source

pub fn time_zone_if(self, time_zone: TimeZone, predicate: bool) -> Self

Source

pub fn time_zone_if_some(self, time_zone: Option<TimeZone>) -> Self

Source

pub fn time_zones(self, time_zones: impl IntoIterator<Item = TimeZone>) -> Self

Source

pub fn time_zones_if( self, time_zones: impl IntoIterator<Item = TimeZone>, predicate: bool, ) -> Self

Source

pub fn encryption_key(self, key: impl Into<Key>) -> Self

Source

pub fn encryption_key_if( self, encryption_key: impl Into<Key>, predicate: bool, ) -> Self

Source

pub fn encryption_key_if_some( self, encryption_key: Option<impl Into<Key>>, ) -> Self

Source

pub fn attribute(self, attribute: impl Into<Attribute>) -> Self

Source

pub fn attribute_if( self, attribute: impl Into<Attribute>, predicate: bool, ) -> Self

Source

pub fn attribute_if_some(self, attribute: Option<impl Into<Attribute>>) -> Self

Source

pub fn attribute_from_str(self, attribute: impl ToString) -> Self

Source

pub fn attribute_from_str_if( self, attribute: impl ToString, predicate: bool, ) -> Self

Source

pub fn attribute_from_str_if_some( self, attribute: Option<impl ToString>, ) -> Self

Source

pub fn attribute_with_value( self, attribute: impl ToString, value: impl ToString, ) -> Self

Source

pub fn attribute_with_value_if( self, attribute: impl ToString, value: impl ToString, predicate: bool, ) -> Self

Source

pub fn attribute_with_value_if_some( self, attribute: impl ToString, value: Option<impl ToString>, ) -> Self

Source

pub fn attributes( self, attributes: impl IntoIterator<Item = impl Into<Attribute>>, ) -> Self

Source

pub fn attributes_if( self, attributes: impl IntoIterator<Item = impl Into<Attribute>>, predicate: bool, ) -> Self

Source

pub fn attributes_if_some( self, attributes: Option<impl IntoIterator<Item = impl Into<Attribute>>>, ) -> Self

Source

pub fn attributes_from_strs( self, attributes: impl IntoIterator<Item = impl ToString>, ) -> Self

Source

pub fn attributes_from_strs_if( self, attributes: impl IntoIterator<Item = impl ToString>, predicate: bool, ) -> Self

Source

pub fn attributes_from_strs_if_some( self, attributes: Option<impl IntoIterator<Item = impl ToString>>, ) -> Self

Source

pub fn media(self, media: Media) -> Self

Source

pub fn media_if(self, media: Media, predicate: bool) -> Self

Source

pub fn media_if_some(self, media: Option<Media>) -> Self

Source

pub fn medias(self, medias: impl IntoIterator<Item = Media>) -> Self

Source

pub fn medias_if( self, medias: impl IntoIterator<Item = Media>, predicate: bool, ) -> Self

Source

pub fn build(self) -> Session

Trait Implementations§

Source§

impl Debug for Session

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.