pub struct BinaryRestrictions {
pub mime_types: Option<Vec<String>>,
pub min_bytes: Option<u32>,
pub max_bytes: Option<u32>,
}Fields§
§mime_types: Option<Vec<String>>Optional set of allowed MIME types. none = unrestricted.
min_bytes: Option<u32>§max_bytes: Option<u32>Trait Implementations§
Source§impl Clone for BinaryRestrictions
impl Clone for BinaryRestrictions
Source§fn clone(&self) -> BinaryRestrictions
fn clone(&self) -> BinaryRestrictions
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 moreAuto Trait Implementations§
impl Freeze for BinaryRestrictions
impl RefUnwindSafe for BinaryRestrictions
impl Send for BinaryRestrictions
impl Sync for BinaryRestrictions
impl Unpin for BinaryRestrictions
impl UnsafeUnpin for BinaryRestrictions
impl UnwindSafe for BinaryRestrictions
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