pub enum NewtypeRule {
NonAnonymous,
Text {
max_bytes: u32,
non_blank: bool,
max_chars: Option<u32>,
},
}Expand description
A versioned constraint on the inner primitive of a named newtype.
Variants§
NonAnonymous
A Principal other than the anonymous identity.
Text
Bounded UTF-8 text with a conjunction of optional refinements.
Implementations§
Trait Implementations§
Source§impl Clone for NewtypeRule
impl Clone for NewtypeRule
impl Copy for NewtypeRule
Source§impl Debug for NewtypeRule
impl Debug for NewtypeRule
impl Eq for NewtypeRule
Source§impl PartialEq for NewtypeRule
impl PartialEq for NewtypeRule
Source§impl Serialize for NewtypeRule
impl Serialize for NewtypeRule
impl StructuralPartialEq for NewtypeRule
Auto Trait Implementations§
impl Forget for NewtypeRule
impl Freeze for NewtypeRule
impl Move for NewtypeRule
impl RefUnwindSafe for NewtypeRule
impl Send for NewtypeRule
impl Sync for NewtypeRule
impl Unpin for NewtypeRule
impl UnsafeUnpin for NewtypeRule
impl UnwindSafe for NewtypeRule
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