pub struct Field {
pub name: &'static str,
pub columns: &'static [ColumnSpec],
pub nullable: bool,
pub parse_text: fn(&str) -> Option<Result<SqlValue, FieldError>>,
pub handed_back: fn() -> bool,
}Fields§
§name: &'static str§columns: &'static [ColumnSpec]§nullable: bool§parse_text: fn(&str) -> Option<Result<SqlValue, FieldError>>§handed_back: fn() -> boolWhether the server can read the stored value back, so an edit left blank keeps it.
Implementations§
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 UnsafeUnpin 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