Struct forgejo_api::structs::GeneralAttachmentSettings
source · pub struct GeneralAttachmentSettings {
pub allowed_types: Option<String>,
pub enabled: Option<bool>,
pub max_files: Option<u64>,
pub max_size: Option<u64>,
}Expand description
GeneralAttachmentSettings contains global Attachment settings exposed by API
Fields§
§allowed_types: Option<String>§enabled: Option<bool>§max_files: Option<u64>§max_size: Option<u64>Trait Implementations§
source§impl Clone for GeneralAttachmentSettings
impl Clone for GeneralAttachmentSettings
source§fn clone(&self) -> GeneralAttachmentSettings
fn clone(&self) -> GeneralAttachmentSettings
Returns a copy 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 GeneralAttachmentSettings
impl Debug for GeneralAttachmentSettings
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
This method 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