Skip to main content

NSRelationshipDescription

Struct NSRelationshipDescription 

Source
pub struct NSRelationshipDescription { /* private fields */ }
Expand description

Wraps NSRelationshipDescription.

Implementations§

Source§

impl NSRelationshipDescription

Source

pub fn is_to_many(&self) -> bool

Wraps NSRelationshipDescription.is_to_many(...).

Source

pub fn is_ordered(&self) -> bool

Wraps NSRelationshipDescription.is_ordered(...).

Source

pub fn set_ordered(&self, ordered: bool) -> Result<(), CoreDataError>

Mirrors NSRelationshipDescription.ordered.

Source

pub fn version_hash(&self) -> Result<String, CoreDataError>

Wraps NSRelationshipDescription.version_hash(...).

Source§

impl NSRelationshipDescription

Source

pub fn new(name: impl AsRef<str>) -> Result<Self, CoreDataError>

Wraps NSRelationshipDescription.init(...).

Source

pub fn name(&self) -> Result<String, CoreDataError>

Wraps NSRelationshipDescription.name(...).

Source

pub fn set_name(&self, name: impl AsRef<str>) -> Result<(), CoreDataError>

Mirrors NSRelationshipDescription.name.

Source

pub fn is_optional(&self) -> bool

Wraps NSRelationshipDescription.is_optional(...).

Source

pub fn set_optional(&self, optional: bool) -> Result<(), CoreDataError>

Mirrors NSRelationshipDescription.optional.

Source

pub fn is_transient(&self) -> bool

Wraps NSRelationshipDescription.is_transient(...).

Source

pub fn set_transient(&self, transient: bool) -> Result<(), CoreDataError>

Mirrors NSRelationshipDescription.transient.

Source

pub fn destination_entity( &self, ) -> Result<Option<NSEntityDescription>, CoreDataError>

Wraps NSRelationshipDescription.destination_entity(...).

Source

pub fn set_destination_entity( &self, entity: Option<&NSEntityDescription>, ) -> Result<(), CoreDataError>

Mirrors NSRelationshipDescription.destination_entity.

Source

pub fn inverse_relationship( &self, ) -> Result<Option<NSRelationshipDescription>, CoreDataError>

Wraps NSRelationshipDescription.inverse_relationship(...).

Source

pub fn set_inverse_relationship( &self, inverse_relationship: Option<&NSRelationshipDescription>, ) -> Result<(), CoreDataError>

Mirrors NSRelationshipDescription.inverse_relationship.

Source

pub fn min_count(&self) -> usize

Wraps NSRelationshipDescription.min_count(...).

Source

pub fn set_min_count(&self, min_count: usize) -> Result<(), CoreDataError>

Mirrors NSRelationshipDescription.min_count.

Source

pub fn max_count(&self) -> usize

Wraps NSRelationshipDescription.max_count(...).

Source

pub fn set_max_count(&self, max_count: usize) -> Result<(), CoreDataError>

Mirrors NSRelationshipDescription.max_count.

Source

pub fn delete_rule(&self) -> DeleteRule

Wraps NSRelationshipDescription.delete_rule(...).

Source

pub fn set_delete_rule( &self, delete_rule: DeleteRule, ) -> Result<(), CoreDataError>

Mirrors NSRelationshipDescription.delete_rule.

Source§

impl NSRelationshipDescription

Source

pub fn validation_rules(&self) -> Result<Vec<ValidationRule>, CoreDataError>

Wraps NSRelationshipDescription.validation_rules(...).

Source

pub fn set_validation_rules( &self, rules: &[ValidationRule], ) -> Result<(), CoreDataError>

Mirrors NSRelationshipDescription.validation_rules.

Trait Implementations§

Source§

impl Clone for NSRelationshipDescription

Source§

fn clone(&self) -> NSRelationshipDescription

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for NSRelationshipDescription

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Send for NSRelationshipDescription

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.