#[repr(transparent)]pub struct CKShareParticipantRole(pub NSInteger);Available on crate feature
CKShareParticipant only.Expand description
Defines the participant role in a share:
owner: Can add private users.privateUser: Can access the share.publicUser: Self-added when accessing the share URL (owners cannot add public users).administrator: Can add and remove participants and change their permissions.
Shares with CloudKit/CKShareParticipantRole/CKShareParticipantRoleAdministrator participants will be returned as read-only to devices running OS versions prior to this role being introduced.
Administrator participants on these read-only shares will be returned as CloudKit/CKShareParticipantRole/CKShareParticipantRolePrivateUser.
See also Apple’s documentation
Tuple Fields§
§0: NSIntegerImplementations§
pub const Unknown: Self
pub const Owner: Self
pub const PrivateUser: Self
pub const PublicUser: Self
pub const Administrator: Self
Trait Implementations§
Source§fn clone(&self) -> CKShareParticipantRole
fn clone(&self) -> CKShareParticipantRole
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§fn cmp(&self, other: &CKShareParticipantRole) -> Ordering
fn cmp(&self, other: &CKShareParticipantRole) -> 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§const ENCODING_REF: Encoding
const ENCODING_REF: Encoding
The Objective-C type-encoding for a reference of this type. Read more
Auto Trait Implementations§
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§impl<T> EncodeArgument for Twhere
T: Encode,
impl<T> EncodeArgument for Twhere
T: Encode,
Source§const ENCODING_ARGUMENT: Encoding = T::ENCODING
const ENCODING_ARGUMENT: Encoding = T::ENCODING
The Objective-C type-encoding for this type.
Source§impl<T> EncodeReturn for Twhere
T: Encode,
impl<T> EncodeReturn for Twhere
T: Encode,
Source§const ENCODING_RETURN: Encoding = T::ENCODING
const ENCODING_RETURN: Encoding = T::ENCODING
The Objective-C type-encoding for this type.