pub struct AttachmentLimits {
pub count: usize,
pub screenshot_bytes: u64,
pub audio_bytes: u64,
pub file_bytes: u64,
pub aggregate_bytes: u64,
}Fields§
§count: usize§screenshot_bytes: u64§audio_bytes: u64§file_bytes: u64§aggregate_bytes: u64Implementations§
Source§impl AttachmentLimits
impl AttachmentLimits
pub const fn maximum_for(self, kind: AttachmentKind) -> u64
Trait Implementations§
Source§impl Clone for AttachmentLimits
impl Clone for AttachmentLimits
Source§fn clone(&self) -> AttachmentLimits
fn clone(&self) -> AttachmentLimits
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 moreimpl Copy for AttachmentLimits
Source§impl Debug for AttachmentLimits
impl Debug for AttachmentLimits
Source§impl<'de> Deserialize<'de> for AttachmentLimits
impl<'de> Deserialize<'de> for AttachmentLimits
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
impl Eq for AttachmentLimits
Source§impl PartialEq for AttachmentLimits
impl PartialEq for AttachmentLimits
Source§impl Serialize for AttachmentLimits
impl Serialize for AttachmentLimits
impl StructuralPartialEq for AttachmentLimits
Auto Trait Implementations§
impl Freeze for AttachmentLimits
impl RefUnwindSafe for AttachmentLimits
impl Send for AttachmentLimits
impl Sync for AttachmentLimits
impl Unpin for AttachmentLimits
impl UnsafeUnpin for AttachmentLimits
impl UnwindSafe for AttachmentLimits
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.