pub struct RemovePermissionV0 {
pub member: UserId,
pub permission: PermissionV0,
pub metadata: Vec<u8>,
}
Expand description
Remove permission from a user in a repo
Fields§
§member: UserId
Member to remove
permission: PermissionV0
Permission removed from user
metadata: Vec<u8>
Metadata (reason, new cryptographic materials…) If the permission was linked to a COMMON KEY, a new privkey should be generated and sent to all users that still have this permission, encrypted with their respective pubkey If a PROOF for the common key is needed, should be sent here too
Trait Implementations§
Source§impl Clone for RemovePermissionV0
impl Clone for RemovePermissionV0
Source§fn clone(&self) -> RemovePermissionV0
fn clone(&self) -> RemovePermissionV0
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for RemovePermissionV0
impl Debug for RemovePermissionV0
Source§impl<'de> Deserialize<'de> for RemovePermissionV0
impl<'de> Deserialize<'de> for RemovePermissionV0
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 PartialEq for RemovePermissionV0
impl PartialEq for RemovePermissionV0
Source§impl Serialize for RemovePermissionV0
impl Serialize for RemovePermissionV0
impl Eq for RemovePermissionV0
impl StructuralPartialEq for RemovePermissionV0
Auto Trait Implementations§
impl Freeze for RemovePermissionV0
impl RefUnwindSafe for RemovePermissionV0
impl Send for RemovePermissionV0
impl Sync for RemovePermissionV0
impl Unpin for RemovePermissionV0
impl UnwindSafe for RemovePermissionV0
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