Struct safe_app::permissions::UserPermissionSet [−][src]
pub struct UserPermissionSet { pub user_h: SignPubKeyHandle, pub perm_set: PermissionSet, }
Object representing a (User, Permission Set) pair.
Fields
user_h: SignPubKeyHandle
User's sign key handle.
perm_set: PermissionSet
User's permission set.
Methods
impl UserPermissionSet
[src]
impl UserPermissionSet
pub fn into_repr_c(self) -> FfiUserPermissionSet
[src]
pub fn into_repr_c(self) -> FfiUserPermissionSet
Consumes the object and returns the FFI counterpart.
You're now responsible for freeing the object's memory once you're done.
Trait Implementations
impl Copy for UserPermissionSet
[src]
impl Copy for UserPermissionSet
impl Clone for UserPermissionSet
[src]
impl Clone for UserPermissionSet
fn clone(&self) -> UserPermissionSet
[src]
fn clone(&self) -> UserPermissionSet
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Default for UserPermissionSet
[src]
impl Default for UserPermissionSet
fn default() -> UserPermissionSet
[src]
fn default() -> UserPermissionSet
Returns the "default value" for a type. Read more
impl Debug for UserPermissionSet
[src]
impl Debug for UserPermissionSet
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Eq for UserPermissionSet
[src]
impl Eq for UserPermissionSet
impl Ord for UserPermissionSet
[src]
impl Ord for UserPermissionSet
fn cmp(&self, other: &UserPermissionSet) -> Ordering
[src]
fn cmp(&self, other: &UserPermissionSet) -> Ordering
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
1.21.0[src]
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
impl PartialEq for UserPermissionSet
[src]
impl PartialEq for UserPermissionSet
fn eq(&self, other: &UserPermissionSet) -> bool
[src]
fn eq(&self, other: &UserPermissionSet) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &UserPermissionSet) -> bool
[src]
fn ne(&self, other: &UserPermissionSet) -> bool
This method tests for !=
.
impl PartialOrd for UserPermissionSet
[src]
impl PartialOrd for UserPermissionSet
fn partial_cmp(&self, other: &UserPermissionSet) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &UserPermissionSet) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &UserPermissionSet) -> bool
[src]
fn lt(&self, other: &UserPermissionSet) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &UserPermissionSet) -> bool
[src]
fn le(&self, other: &UserPermissionSet) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &UserPermissionSet) -> bool
[src]
fn gt(&self, other: &UserPermissionSet) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &UserPermissionSet) -> bool
[src]
fn ge(&self, other: &UserPermissionSet) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl ReprC for UserPermissionSet
[src]
impl ReprC for UserPermissionSet
type C = *const FfiUserPermissionSet
C representation of the type
type Error = IpcError
Error type
unsafe fn clone_from_repr_c(c_repr: Self::C) -> Result<Self, Self::Error>
[src]
unsafe fn clone_from_repr_c(c_repr: Self::C) -> Result<Self, Self::Error>
Converts from a raw type into an owned type by cloning data
Auto Trait Implementations
impl Send for UserPermissionSet
impl Send for UserPermissionSet
impl Sync for UserPermissionSet
impl Sync for UserPermissionSet