Struct json_model::StringMaxLength
source · pub struct StringMaxLength { /* private fields */ }
Implementations
sourceimpl StringMaxLength
impl StringMaxLength
pub fn new(path: DocumentPath, ctx: &Context<'_>) -> Result<Self, Error>
pub fn allowed_types() -> HashSet<AllowedType>
pub fn build(
_: &mut State,
path: DocumentPath,
ctx: &Context<'_>
) -> Result<Box<dyn Attribute>, Error>
Trait Implementations
sourceimpl Attribute for StringMaxLength
impl Attribute for StringMaxLength
Auto Trait Implementations
impl RefUnwindSafe for StringMaxLength
impl Send for StringMaxLength
impl Sync for StringMaxLength
impl Unpin for StringMaxLength
impl UnwindSafe for StringMaxLength
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more