pub struct OrvantaFilePreview {
pub msg: Option<String>,
pub content: Option<String>,
pub content_type: ContentType,
}Fields§
§msg: Option<String>§content: Option<String>§content_type: ContentTypeImplementations§
Source§impl OrvantaFilePreview
impl OrvantaFilePreview
pub fn new(content_type: ContentType) -> OrvantaFilePreview
Trait Implementations§
Source§impl Clone for OrvantaFilePreview
impl Clone for OrvantaFilePreview
Source§fn clone(&self) -> OrvantaFilePreview
fn clone(&self) -> OrvantaFilePreview
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 OrvantaFilePreview
impl Debug for OrvantaFilePreview
Source§impl Default for OrvantaFilePreview
impl Default for OrvantaFilePreview
Source§fn default() -> OrvantaFilePreview
fn default() -> OrvantaFilePreview
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for OrvantaFilePreview
impl<'de> Deserialize<'de> for OrvantaFilePreview
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 OrvantaFilePreview
impl PartialEq for OrvantaFilePreview
Source§fn eq(&self, other: &OrvantaFilePreview) -> bool
fn eq(&self, other: &OrvantaFilePreview) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for OrvantaFilePreview
impl Serialize for OrvantaFilePreview
impl StructuralPartialEq for OrvantaFilePreview
Auto Trait Implementations§
impl Freeze for OrvantaFilePreview
impl RefUnwindSafe for OrvantaFilePreview
impl Send for OrvantaFilePreview
impl Sync for OrvantaFilePreview
impl Unpin for OrvantaFilePreview
impl UnsafeUnpin for OrvantaFilePreview
impl UnwindSafe for OrvantaFilePreview
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