pub struct AddPermissionV0 {
pub member: UserId,
pub permission: PermissionV0,
pub metadata: Vec<u8>,
}
Expand description
Add permission to a member in a repo
Fields§
§member: UserId
Member receiving the permission
permission: PermissionV0
Permission given to user
metadata: Vec<u8>
Metadata (role, app level permissions, cryptographic material, etc) if the added permission is a write one, a crypto_box containing the RepoWriteCapSecret should be included here for the member that receives the perm.
Can be some COMMON KEY privkey encrypted with the user pubkey If a PROOF for the common key is needed, should be sent here too COMMON KEYS are: SHARE, INBOX,
Trait Implementations§
Source§impl Clone for AddPermissionV0
impl Clone for AddPermissionV0
Source§fn clone(&self) -> AddPermissionV0
fn clone(&self) -> AddPermissionV0
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 AddPermissionV0
impl Debug for AddPermissionV0
Source§impl<'de> Deserialize<'de> for AddPermissionV0
impl<'de> Deserialize<'de> for AddPermissionV0
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 AddPermissionV0
impl PartialEq for AddPermissionV0
Source§impl Serialize for AddPermissionV0
impl Serialize for AddPermissionV0
impl Eq for AddPermissionV0
impl StructuralPartialEq for AddPermissionV0
Auto Trait Implementations§
impl Freeze for AddPermissionV0
impl RefUnwindSafe for AddPermissionV0
impl Send for AddPermissionV0
impl Sync for AddPermissionV0
impl Unpin for AddPermissionV0
impl UnwindSafe for AddPermissionV0
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