pub struct AttachmentSettings {
pub enabled: Option<bool>,
pub upload_limit: Option<i64>,
}
Expand description
AttachmentSettings : Details of the instance’s attachment settings.
Fields§
§enabled: Option<bool>
Whether the ability to add attachments is enabled.
upload_limit: Option<i64>
The maximum size of attachments permitted, in bytes.
Implementations§
Source§impl AttachmentSettings
impl AttachmentSettings
Sourcepub fn new() -> AttachmentSettings
pub fn new() -> AttachmentSettings
Details of the instance’s attachment settings.
Trait Implementations§
Source§impl Clone for AttachmentSettings
impl Clone for AttachmentSettings
Source§fn clone(&self) -> AttachmentSettings
fn clone(&self) -> AttachmentSettings
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 AttachmentSettings
impl Debug for AttachmentSettings
Source§impl Default for AttachmentSettings
impl Default for AttachmentSettings
Source§fn default() -> AttachmentSettings
fn default() -> AttachmentSettings
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AttachmentSettings
impl<'de> Deserialize<'de> for AttachmentSettings
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 AttachmentSettings
impl PartialEq for AttachmentSettings
Source§impl Serialize for AttachmentSettings
impl Serialize for AttachmentSettings
impl StructuralPartialEq for AttachmentSettings
Auto Trait Implementations§
impl Freeze for AttachmentSettings
impl RefUnwindSafe for AttachmentSettings
impl Send for AttachmentSettings
impl Sync for AttachmentSettings
impl Unpin for AttachmentSettings
impl UnwindSafe for AttachmentSettings
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