#[repr(transparent)]pub struct CKRecordZoneEncryptionScope(pub NSInteger);Available on crate feature
CKRecordZone only.Expand description
Tuple Fields§
§0: NSIntegerImplementations§
Source§impl CKRecordZoneEncryptionScope
impl CKRecordZoneEncryptionScope
Sourcepub const PerRecord: Self
pub const PerRecord: Self
Zone uses per-record encryption keys for any encrypted values on a record or share.
This is the default encryption scope for a record zone.
Sourcepub const PerZone: Self
pub const PerZone: Self
Zone uses per-zone encryption keys for encrypted values across all records and the zone-wide share, if present.
This is an optional optimization that can reduce the overall storage used by encryption keys in a zone. Note that:
- Record zones using per-zone encryption only support zone-wide sharing.
- Encryption scope can only be assigned at zone creation and cannot be changed for the lifetime of the zone.
- The server will not return zones using per-zone encryption to device OS versions older than the corresponding API availability version.
- An older OS trying to overwrite an existing zone using per-zone encryption due to a naming collision will result in a
.serverRejectedRequesterror. - On device OS upgrade, your application is responsible for fetching database changes via
CKFetchDatabaseChangesOperationwith a nil sync token to ensure it has received all the zones available to it from the server.
Trait Implementations§
Source§impl Clone for CKRecordZoneEncryptionScope
impl Clone for CKRecordZoneEncryptionScope
Source§fn clone(&self) -> CKRecordZoneEncryptionScope
fn clone(&self) -> CKRecordZoneEncryptionScope
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 CKRecordZoneEncryptionScope
impl Debug for CKRecordZoneEncryptionScope
Source§impl Encode for CKRecordZoneEncryptionScope
impl Encode for CKRecordZoneEncryptionScope
Source§impl Hash for CKRecordZoneEncryptionScope
impl Hash for CKRecordZoneEncryptionScope
Source§impl Ord for CKRecordZoneEncryptionScope
impl Ord for CKRecordZoneEncryptionScope
Source§fn cmp(&self, other: &CKRecordZoneEncryptionScope) -> Ordering
fn cmp(&self, other: &CKRecordZoneEncryptionScope) -> 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 PartialOrd for CKRecordZoneEncryptionScope
impl PartialOrd for CKRecordZoneEncryptionScope
Source§impl RefEncode for CKRecordZoneEncryptionScope
impl RefEncode for CKRecordZoneEncryptionScope
Source§const ENCODING_REF: Encoding
const ENCODING_REF: Encoding
The Objective-C type-encoding for a reference of this type. Read more
impl Copy for CKRecordZoneEncryptionScope
impl Eq for CKRecordZoneEncryptionScope
impl StructuralPartialEq for CKRecordZoneEncryptionScope
Auto Trait Implementations§
impl Freeze for CKRecordZoneEncryptionScope
impl RefUnwindSafe for CKRecordZoneEncryptionScope
impl Send for CKRecordZoneEncryptionScope
impl Sync for CKRecordZoneEncryptionScope
impl Unpin for CKRecordZoneEncryptionScope
impl UnwindSafe for CKRecordZoneEncryptionScope
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.