pub struct User {
pub user: String,
pub group: Option<String>,
}
Expand description
Represents user and group definition
Fields§
§user: String
The user name or ID The ID is preferred
group: Option<String>
The group name or ID The ID is preferred
Implementations§
Trait Implementations§
Source§impl From<ParsableStruct<UserPatch>> for User
impl From<ParsableStruct<UserPatch>> for User
Source§fn from(value: ParsableStruct<UserPatch>) -> Self
fn from(value: ParsableStruct<UserPatch>) -> Self
Converts to this type from the input type.
Source§impl Patch<ParsableStruct<UserPatch>> for User
impl Patch<ParsableStruct<UserPatch>> for User
Source§fn apply(&mut self, patch: ParsableStruct<UserPatch>)
fn apply(&mut self, patch: ParsableStruct<UserPatch>)
Apply a patch
Source§fn into_patch(self) -> ParsableStruct<UserPatch>
fn into_patch(self) -> ParsableStruct<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) -> ParsableStruct<UserPatch>
fn into_patch_by_diff(self, previous_struct: Self) -> ParsableStruct<UserPatch>
Returns a patch that when applied turns
previous_struct
into Self
Source§fn new_empty_patch() -> ParsableStruct<UserPatch>
fn new_empty_patch() -> ParsableStruct<UserPatch>
Get an empty patch instance
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 User
Auto Trait Implementations§
impl Freeze for User
impl RefUnwindSafe for User
impl Send for User
impl Sync for User
impl Unpin for User
impl UnwindSafe for User
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