pub struct InputFields { /* private fields */ }Implementations§
Source§impl InputFields
impl InputFields
pub fn new(value: Value) -> Result<Self>
pub fn take<T: DeserializeOwned>(&mut self, name: &str) -> Result<T>
pub fn optional<T: DeserializeOwned>(&mut self, name: &str) -> Result<Option<T>>
pub fn finish(self) -> Result<()>
pub fn checked<T>( &mut self, read: Result<T>, refusal: impl FnOnce(&T) -> Option<FieldError>, ) -> Result<T>
Auto Trait Implementations§
impl Freeze for InputFields
impl RefUnwindSafe for InputFields
impl Send for InputFields
impl Sync for InputFields
impl Unpin for InputFields
impl UnsafeUnpin for InputFields
impl UnwindSafe for InputFields
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