pub struct Partial<'a, T, F = <T as SerializePartial<'a>>::Filter>where
T: ?Sized + SerializePartial<'a>,{
pub value: &'a T,
pub filter: F,
}
Expand description
A type which implements Serialize
by forwarding the implementation to the value it references while skipping fields according to its filter.
Fields§
§value: &'a T
The value to serialize.
filter: F
The field filter to use.
Trait Implementations§
impl<'a, T, F> Copy for Partial<'a, T, F>
Auto Trait Implementations§
impl<'a, T, F> Freeze for Partial<'a, T, F>
impl<'a, T, F> RefUnwindSafe for Partial<'a, T, F>
impl<'a, T, F> Send for Partial<'a, T, F>
impl<'a, T, F> Sync for Partial<'a, T, F>
impl<'a, T, F> Unpin for Partial<'a, T, F>
impl<'a, T, F> UnwindSafe for Partial<'a, T, F>
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