pub struct SequencePrivatePolicy {
pub owner: PublicKey,
pub permissions: BTreeMap<PublicKey, PrivatePermissions>,
}
Expand description
Private permissions.
Fields§
§owner: PublicKey
An owner could represent an individual user, or a group of users,
depending on the public_key
type.
permissions: BTreeMap<PublicKey, PrivatePermissions>
Map of users to their private permission set.
Trait Implementations§
Source§impl Clone for PrivatePolicy
impl Clone for PrivatePolicy
Source§fn clone(&self) -> PrivatePolicy
fn clone(&self) -> PrivatePolicy
Returns a duplicate 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 PrivatePolicy
impl Debug for PrivatePolicy
Source§impl<'de> Deserialize<'de> for PrivatePolicy
impl<'de> Deserialize<'de> for PrivatePolicy
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 From<PrivatePolicy> for Policy
impl From<PrivatePolicy> for Policy
Source§fn from(policy: PrivatePolicy) -> Self
fn from(policy: PrivatePolicy) -> Self
Converts to this type from the input type.
Source§impl Hash for PrivatePolicy
impl Hash for PrivatePolicy
Source§impl Ord for PrivatePolicy
impl Ord for PrivatePolicy
Source§fn cmp(&self, other: &PrivatePolicy) -> Ordering
fn cmp(&self, other: &PrivatePolicy) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for PrivatePolicy
impl PartialEq for PrivatePolicy
Source§impl PartialOrd for PrivatePolicy
impl PartialOrd for PrivatePolicy
Source§impl Serialize for PrivatePolicy
impl Serialize for PrivatePolicy
impl Eq for PrivatePolicy
impl StructuralPartialEq for PrivatePolicy
Auto Trait Implementations§
impl Freeze for PrivatePolicy
impl RefUnwindSafe for PrivatePolicy
impl Send for PrivatePolicy
impl Sync for PrivatePolicy
impl Unpin for PrivatePolicy
impl UnwindSafe for PrivatePolicy
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