pub struct Field { /* private fields */ }
Implementations§
Source§impl Field
impl Field
pub fn new(mode: Fields, name: &str) -> Field
pub fn title(self, name: &str) -> Field
pub fn require(self, require: bool) -> Field
pub fn show(self, show: bool) -> Field
pub fn example(self, example: JsonValue) -> Field
pub fn length(self, length: usize) -> Field
pub fn describe(self, describe: &str) -> Field
pub fn option(self, option: Vec<&'static str>) -> Field
pub fn multiple(self, multiple: bool, count: usize) -> Field
pub fn dec(self, dec: usize) -> Field
pub fn sql(self) -> JsonValue
pub fn swagger(self) -> JsonValue
pub fn field(self) -> JsonValue
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Field
impl RefUnwindSafe for Field
impl Send for Field
impl Sync for Field
impl Unpin for Field
impl UnwindSafe for Field
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