pub struct GeneralAttachmentSettings {
pub allowed_types: Option<String>,
pub enabled: Option<bool>,
pub max_files: Option<i64>,
pub max_size: Option<i64>,
}
Expand description
GeneralAttachmentSettings : GeneralAttachmentSettings contains global Attachment settings exposed by API
Fields§
§allowed_types: Option<String>
§enabled: Option<bool>
§max_files: Option<i64>
§max_size: Option<i64>
Implementations§
Source§impl GeneralAttachmentSettings
impl GeneralAttachmentSettings
Sourcepub fn new() -> GeneralAttachmentSettings
pub fn new() -> GeneralAttachmentSettings
GeneralAttachmentSettings contains global Attachment settings exposed by API
Trait Implementations§
Source§impl Clone for GeneralAttachmentSettings
impl Clone for GeneralAttachmentSettings
Source§fn clone(&self) -> GeneralAttachmentSettings
fn clone(&self) -> GeneralAttachmentSettings
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for GeneralAttachmentSettings
impl Debug for GeneralAttachmentSettings
Source§impl Default for GeneralAttachmentSettings
impl Default for GeneralAttachmentSettings
Source§fn default() -> GeneralAttachmentSettings
fn default() -> GeneralAttachmentSettings
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GeneralAttachmentSettings
impl<'de> Deserialize<'de> for GeneralAttachmentSettings
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 GeneralAttachmentSettings
impl PartialEq for GeneralAttachmentSettings
Source§fn eq(&self, other: &GeneralAttachmentSettings) -> bool
fn eq(&self, other: &GeneralAttachmentSettings) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for GeneralAttachmentSettings
Auto Trait Implementations§
impl Freeze for GeneralAttachmentSettings
impl RefUnwindSafe for GeneralAttachmentSettings
impl Send for GeneralAttachmentSettings
impl Sync for GeneralAttachmentSettings
impl Unpin for GeneralAttachmentSettings
impl UnwindSafe for GeneralAttachmentSettings
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