Struct oas3::validation::DataType
source · pub struct DataType { /* private fields */ }
Implementations§
source§impl DataType
impl DataType
pub fn new(type_: SchemaType) -> Self
pub fn boolean() -> Self
pub fn integer() -> Self
pub fn number() -> Self
pub fn string() -> Self
pub fn array() -> Self
pub fn object() -> Self
pub fn set_nullable(self, nullable: bool) -> Self
pub fn nullable(self) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DataType
impl RefUnwindSafe for DataType
impl Send for DataType
impl Sync for DataType
impl Unpin for DataType
impl UnwindSafe for DataType
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