pub struct WindmillFilePreview {
pub msg: Option<String>,
pub content: Option<String>,
pub content_type: ContentType,
}
Fields§
§msg: Option<String>
§content: Option<String>
§content_type: ContentType
Implementations§
Source§impl WindmillFilePreview
impl WindmillFilePreview
pub fn new(content_type: ContentType) -> WindmillFilePreview
Trait Implementations§
Source§impl Clone for WindmillFilePreview
impl Clone for WindmillFilePreview
Source§fn clone(&self) -> WindmillFilePreview
fn clone(&self) -> WindmillFilePreview
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 WindmillFilePreview
impl Debug for WindmillFilePreview
Source§impl Default for WindmillFilePreview
impl Default for WindmillFilePreview
Source§fn default() -> WindmillFilePreview
fn default() -> WindmillFilePreview
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for WindmillFilePreview
impl<'de> Deserialize<'de> for WindmillFilePreview
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 WindmillFilePreview
impl PartialEq for WindmillFilePreview
Source§impl Serialize for WindmillFilePreview
impl Serialize for WindmillFilePreview
impl StructuralPartialEq for WindmillFilePreview
Auto Trait Implementations§
impl Freeze for WindmillFilePreview
impl RefUnwindSafe for WindmillFilePreview
impl Send for WindmillFilePreview
impl Sync for WindmillFilePreview
impl Unpin for WindmillFilePreview
impl UnwindSafe for WindmillFilePreview
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