pub enum FormatModifier {
Int32,
Int64,
Float,
Double,
Custom(String),
}
Expand description
https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#dataTypes
Variants§
Int32
Int64
Float
Double
Custom(String)
the format property is an open string-valued property, and can have any value. Formats such as “email”, “uuid”, and so on, MAY be used even though undefined by this specification.
Implementations§
Source§impl FormatModifier
impl FormatModifier
pub fn find(target: &str) -> Option<FormatModifier>
Trait Implementations§
Source§impl AsRef<str> for FormatModifier
impl AsRef<str> for FormatModifier
Source§impl Clone for FormatModifier
impl Clone for FormatModifier
Source§fn clone(&self) -> FormatModifier
fn clone(&self) -> FormatModifier
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for FormatModifier
impl Debug for FormatModifier
Auto Trait Implementations§
impl Freeze for FormatModifier
impl RefUnwindSafe for FormatModifier
impl Send for FormatModifier
impl Sync for FormatModifier
impl Unpin for FormatModifier
impl UnwindSafe for FormatModifier
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