pub struct Session(/* private fields */);Expand description
A crate::Session builder.
Implementations§
Source§impl Session
impl Session
pub fn new(origin: Origin, session_name: impl ToString) -> Self
pub fn session_description(self, session_description: impl ToString) -> Self
pub fn session_description_if( self, session_description: impl ToString, predicate: bool, ) -> Self
pub fn session_description_if_some( self, session_description: Option<impl ToString>, ) -> Self
pub fn uri(self, uri: impl ToString) -> Self
pub fn uri_if(self, uri: impl ToString, predicate: bool) -> Self
pub fn uri_if_some(self, uri: Option<impl ToString>) -> Self
pub fn email(self, email: impl ToString) -> Self
pub fn email_if(self, email: impl ToString, predicate: bool) -> Self
pub fn email_if_some(self, email: Option<impl ToString>) -> Self
pub fn emails(self, emails: impl IntoIterator<Item = impl ToString>) -> Self
pub fn emails_if( self, emails: impl IntoIterator<Item = impl ToString>, predicate: bool, ) -> Self
pub fn phone(self, phone: impl ToString) -> Self
pub fn phone_if(self, phone: impl ToString, predicate: bool) -> Self
pub fn phone_if_some(self, phone: Option<impl ToString>) -> Self
pub fn phones(self, phones: impl IntoIterator<Item = impl ToString>) -> Self
pub fn phones_if( self, phones: impl IntoIterator<Item = impl ToString>, predicate: bool, ) -> Self
pub fn connection(self, connection: impl Into<Connection>) -> Self
pub fn connection_if( self, connection: impl Into<Connection>, predicate: bool, ) -> Self
pub fn connection_if_some( self, connection: Option<impl Into<Connection>>, ) -> Self
pub fn bandwidth(self, bandwidth: Bandwidth) -> Self
pub fn bandwidth_if(self, bandwidth: Bandwidth, predicate: bool) -> Self
pub fn bandwidth_if_some(self, bandwidth: Option<Bandwidth>) -> Self
pub fn bandwidths(self, bandwidths: impl IntoIterator<Item = Bandwidth>) -> Self
pub fn bandwidths_if( self, bandwidths: impl IntoIterator<Item = Bandwidth>, predicate: bool, ) -> Self
pub fn time(self, time: Time) -> Self
pub fn time_if(self, time: Time, predicate: bool) -> Self
pub fn time_if_some(self, time: Option<Time>) -> Self
pub fn times(self, times: impl IntoIterator<Item = Time>) -> Self
pub fn times_if( self, times: impl IntoIterator<Item = Time>, predicate: bool, ) -> Self
pub fn times_if_some( self, times: Option<impl IntoIterator<Item = Time>>, ) -> Self
pub fn time_zone(self, time_zone: TimeZone) -> Self
pub fn time_zone_if(self, time_zone: TimeZone, predicate: bool) -> Self
pub fn time_zone_if_some(self, time_zone: Option<TimeZone>) -> Self
pub fn time_zones(self, time_zones: impl IntoIterator<Item = TimeZone>) -> Self
pub fn time_zones_if( self, time_zones: impl IntoIterator<Item = TimeZone>, predicate: bool, ) -> Self
pub fn encryption_key(self, key: impl Into<Key>) -> Self
pub fn encryption_key_if( self, encryption_key: impl Into<Key>, predicate: bool, ) -> Self
pub fn encryption_key_if_some( self, encryption_key: Option<impl Into<Key>>, ) -> Self
pub fn attribute(self, attribute: impl Into<Attribute>) -> Self
pub fn attribute_if( self, attribute: impl Into<Attribute>, predicate: bool, ) -> Self
pub fn attribute_if_some(self, attribute: Option<impl Into<Attribute>>) -> Self
pub fn attribute_from_str(self, attribute: impl ToString) -> Self
pub fn attribute_from_str_if( self, attribute: impl ToString, predicate: bool, ) -> Self
pub fn attribute_from_str_if_some( self, attribute: Option<impl ToString>, ) -> Self
pub fn attribute_with_value( self, attribute: impl ToString, value: impl ToString, ) -> Self
pub fn attribute_with_value_if( self, attribute: impl ToString, value: impl ToString, predicate: bool, ) -> Self
pub fn attribute_with_value_if_some( self, attribute: impl ToString, value: Option<impl ToString>, ) -> Self
pub fn attributes( self, attributes: impl IntoIterator<Item = impl Into<Attribute>>, ) -> Self
pub fn attributes_if( self, attributes: impl IntoIterator<Item = impl Into<Attribute>>, predicate: bool, ) -> Self
pub fn attributes_if_some( self, attributes: Option<impl IntoIterator<Item = impl Into<Attribute>>>, ) -> Self
pub fn attributes_from_strs( self, attributes: impl IntoIterator<Item = impl ToString>, ) -> Self
pub fn attributes_from_strs_if( self, attributes: impl IntoIterator<Item = impl ToString>, predicate: bool, ) -> Self
pub fn attributes_from_strs_if_some( self, attributes: Option<impl IntoIterator<Item = impl ToString>>, ) -> Self
pub fn media(self, media: Media) -> Self
pub fn media_if(self, media: Media, predicate: bool) -> Self
pub fn media_if_some(self, media: Option<Media>) -> Self
pub fn medias(self, medias: impl IntoIterator<Item = Media>) -> Self
pub fn medias_if( self, medias: impl IntoIterator<Item = Media>, predicate: bool, ) -> Self
pub fn build(self) -> Session
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Session
impl RefUnwindSafe for Session
impl Send for Session
impl Sync for Session
impl Unpin for Session
impl UnsafeUnpin for Session
impl UnwindSafe for Session
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more