pub struct Domain { /* private fields */ }Implementations§
Source§impl Domain
impl Domain
pub fn name(&self) -> &DomainName
pub fn owner(&self) -> &Principal
pub fn set_owner(&mut self, owner: Principal)
pub fn child(&self, edge: &Edge) -> Option<&Domain>
pub fn child_mut(&mut self, edge: &Edge) -> Option<&mut Domain>
pub fn child_names(&self) -> Vec<&Edge>
pub fn insert_or_replace_child( &mut self, domain: Domain, ) -> Result<Option<Domain>>
pub fn remove_child(&mut self, edge: &Edge) -> Result<Domain>
pub fn data(&self) -> &DynamicContent
pub fn data_mut(&mut self) -> &mut DynamicContent
pub fn set_data(&mut self, data: DynamicContent)
pub fn is_expired_at(&self, height: BlockHeight) -> bool
pub fn expires_at_height(&self) -> BlockHeight
pub fn set_expires_at_height(&mut self, height: BlockHeight)
pub fn is_grace_period_over(&self, at_height: BlockHeight) -> bool
pub fn subtree_policies(&self) -> &SubtreePolicies
pub fn registration_policy(&self) -> &RegistrationPolicy
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Domain
impl<'de> Deserialize<'de> for Domain
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
impl Eq for Domain
impl StructuralPartialEq for Domain
Auto Trait Implementations§
impl Freeze for Domain
impl RefUnwindSafe for Domain
impl Send for Domain
impl Sync for Domain
impl Unpin for Domain
impl UnwindSafe for Domain
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.