Struct threema_gateway::Capabilities [] [src]

pub struct Capabilities {
    pub text: bool,
    pub image: bool,
    pub video: bool,
    pub audio: bool,
    pub file: bool,
    pub other: Vec<String>,
}

A struct containing flags according to the capabilities of a Threema ID.

Fields

Whether the ID can receive text messages.

Whether the ID can receive image messages.

Whether the ID can receive video messages.

Whether the ID can receive audio messages.

Whether the ID can receive file messages.

List of other capabilities this ID has.

Methods

impl Capabilities
[src]

Return whether the specified capability is present.

Trait Implementations

impl Debug for Capabilities
[src]

Formats the value using the given formatter.

impl PartialEq for Capabilities
[src]

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

This method tests for !=.

impl FromStr for Capabilities
[src]

The associated error which can be returned from parsing.

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

impl Display for Capabilities
[src]

Formats the value using the given formatter. Read more