pub enum Transform<T, B = T> {
Owned(T),
Borrowed(B),
}
Expand description
Indicates how incoming data should be transformed before being parsed and validated by a data guard.
See the documentation for FromData
for usage details.
Variants§
Owned(T)
Indicates that data should be or has been transformed into the
FromData::Owned
variant.
Borrowed(B)
Indicates that data should be or has been transformed into the
FromData::Borrowed
variant.
Implementations§
Auto Trait Implementations§
impl<T, B> Freeze for Transform<T, B>
impl<T, B> RefUnwindSafe for Transform<T, B>where
T: RefUnwindSafe,
B: RefUnwindSafe,
impl<T, B> Send for Transform<T, B>
impl<T, B> Sync for Transform<T, B>
impl<T, B> Unpin for Transform<T, B>
impl<T, B> UnwindSafe for Transform<T, B>where
T: UnwindSafe,
B: UnwindSafe,
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