pub struct OptionalBytes(pub Option<ByteSize>);Expand description
A byte limit that may be explicitly lifted with "unlimited".
Like OptionalDuration’s “off”: a trusted deployment may reasonably opt
out of enforcement, and spelling that as an absurd number reads as a
mistake. Usage is still accounted and reported either way.
Tuple Fields§
§0: Option<ByteSize>Trait Implementations§
Source§impl Clone for OptionalBytes
impl Clone for OptionalBytes
impl Copy for OptionalBytes
Source§impl Debug for OptionalBytes
impl Debug for OptionalBytes
Source§impl Default for OptionalBytes
impl Default for OptionalBytes
Source§impl Display for OptionalBytes
impl Display for OptionalBytes
impl Eq for OptionalBytes
Source§impl PartialEq for OptionalBytes
impl PartialEq for OptionalBytes
impl StructuralPartialEq for OptionalBytes
Auto Trait Implementations§
impl Freeze for OptionalBytes
impl RefUnwindSafe for OptionalBytes
impl Send for OptionalBytes
impl Sync for OptionalBytes
impl Unpin for OptionalBytes
impl UnsafeUnpin for OptionalBytes
impl UnwindSafe for OptionalBytes
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