pub struct ContentProvider {
pub type: Type,
pub original_content_url: Option<String>,
pub preview_image_url: Option<String>,
}Expand description
ContentProvider : Provider of the media file.
Fields§
§type: TypeProvider of the image file.
original_content_url: Option<String>URL of the image file. Only included when contentProvider.type is external.
preview_image_url: Option<String>URL of the preview image. Only included when contentProvider.type is external.
Implementations§
Source§impl ContentProvider
impl ContentProvider
Sourcepub fn new(type: Type) -> ContentProvider
pub fn new(type: Type) -> ContentProvider
Provider of the media file.
Trait Implementations§
Source§impl Clone for ContentProvider
impl Clone for ContentProvider
Source§fn clone(&self) -> ContentProvider
fn clone(&self) -> ContentProvider
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ContentProvider
impl Debug for ContentProvider
Source§impl Default for ContentProvider
impl Default for ContentProvider
Source§fn default() -> ContentProvider
fn default() -> ContentProvider
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ContentProvider
impl<'de> Deserialize<'de> for ContentProvider
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ContentProvider
impl PartialEq for ContentProvider
Source§impl Serialize for ContentProvider
impl Serialize for ContentProvider
impl StructuralPartialEq for ContentProvider
Auto Trait Implementations§
impl Freeze for ContentProvider
impl RefUnwindSafe for ContentProvider
impl Send for ContentProvider
impl Sync for ContentProvider
impl Unpin for ContentProvider
impl UnwindSafe for ContentProvider
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