pub struct UserPatch {
pub user: Option<String>,
pub group: Option<Option<String>>,
}
Fields§
§user: Option<String>
§group: Option<Option<String>>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for UserPatch
impl<'de> Deserialize<'de> for UserPatch
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Patch<UserPatch> for User
impl Patch<UserPatch> for User
Source§fn into_patch(self) -> UserPatch
fn into_patch(self) -> UserPatch
Returns a patch that when applied turns any struct of the same type into
Self
Source§fn into_patch_by_diff(self, previous_struct: Self) -> UserPatch
fn into_patch_by_diff(self, previous_struct: Self) -> UserPatch
Returns a patch that when applied turns
previous_struct
into Self
Source§fn new_empty_patch() -> UserPatch
fn new_empty_patch() -> UserPatch
Get an empty patch instance
impl StructuralPartialEq for UserPatch
Auto Trait Implementations§
impl Freeze for UserPatch
impl RefUnwindSafe for UserPatch
impl Send for UserPatch
impl Sync for UserPatch
impl Unpin for UserPatch
impl UnwindSafe for UserPatch
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