[][src]Struct xmpp_parsers::jingle::Content

pub struct Content {
    pub creator: Creator,
    pub disposition: Disposition,
    pub name: ContentId,
    pub senders: Senders,
    pub description: Option<Element>,
    pub transport: Option<Element>,
    pub security: Option<Element>,
}

Describes a session’s content, there can be multiple content in one session.

Fields

creator: Creator

Who created this content.

disposition: Disposition

How the content definition is to be interpreted by the recipient.

name: ContentId

A per-session unique identifier for this content.

senders: Senders

Who can send data for this content.

description: Option<Element>

What to send.

transport: Option<Element>

How to send it.

security: Option<Element>

With which security.

Methods

impl Content[src]

pub fn new(creator: Creator, name: ContentId) -> Content[src]

Create a new content.

pub fn with_disposition(self, disposition: Disposition) -> Content[src]

Set how the content is to be interpreted by the recipient.

pub fn with_senders(self, senders: Senders) -> Content[src]

Specify who can send data for this content.

pub fn with_description(self, description: Element) -> Content[src]

Set the description of this content.

pub fn with_transport(self, transport: Element) -> Content[src]

Set the transport of this content.

pub fn with_security(self, security: Element) -> Content[src]

Set the security of this content.

Trait Implementations

impl From<Content> for Element[src]

impl Clone for Content[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for Content[src]

impl TryFrom<Element> for Content[src]

type Error = Error

The type returned in the event of a conversion error.

Auto Trait Implementations

impl Unpin for Content

impl !Sync for Content

impl !Send for Content

impl !RefUnwindSafe for Content

impl !UnwindSafe for Content

Blanket Implementations

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> IntoElements for T where
    T: Into<Element>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self