pub struct User {
pub user: String,
pub group: Option<String>,
}Expand description
Represents user and group definition
Fields§
§user: StringThe 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
Selfsource§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 Selfsource§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
Selfsource§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 Selfsource§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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)