Trait matrix_sdk::media::MediaEventContent[][src]

pub trait MediaEventContent {
    fn file(&self) -> Option<MediaType>;
fn thumbnail(&self) -> Option<MediaType>; }
Expand description

Trait for media event content.

Required methods

Get the type of the file for Self.

Returns None if Self has no file.

Get the type of the thumbnail for Self.

Returns None if Self has no thumbnail.

Implementations on Foreign Types

Implementors