Enum spacetimedb_lib::name::InsertDomainResult
source · pub enum InsertDomainResult {
Success {
domain: DomainName,
address: Address,
},
TldNotRegistered {
domain: DomainName,
},
PermissionDenied {
domain: DomainName,
},
OtherError(String),
}Variants§
Success
TldNotRegistered
Fields
§
domain: DomainNameThe top level domain for the database name is not registered. For example:
clockworklabs/bitcraft
if clockworklabs is not registered, this error is returned.
PermissionDenied
Fields
§
domain: DomainNameThe top level domain for the database name is registered, but the identity that you provided does not have permission to insert the given database name. For example:
clockworklabs/bitcraft
If you were trying to insert this database name, but the tld clockworklabs is
owned by an identity other than the identity that you provided, then you will receive
this error.
OtherError(String)
Some unspecified error occurred.
Trait Implementations§
source§impl Clone for InsertDomainResult
impl Clone for InsertDomainResult
source§fn clone(&self) -> InsertDomainResult
fn clone(&self) -> InsertDomainResult
Returns a copy 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 InsertDomainResult
impl Debug for InsertDomainResult
source§impl<'de> Deserialize<'de> for InsertDomainResult
impl<'de> Deserialize<'de> for InsertDomainResult
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
Auto Trait Implementations§
impl RefUnwindSafe for InsertDomainResult
impl Send for InsertDomainResult
impl Sync for InsertDomainResult
impl Unpin for InsertDomainResult
impl UnwindSafe for InsertDomainResult
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