#[non_exhaustive]pub struct RegisteredName {
pub addresses: Vec<String>,
pub last_error: Option<String>,
pub name: String,
pub published: bool,
pub published_addresses: Vec<String>,
}Expand description
What Canopy holds for a registered name.
JSON schema
{
"description": "What Canopy holds for a registered name.",
"type": "object",
"required": [
"addresses",
"name",
"published",
"published_addresses"
],
"properties": {
"addresses": {
"description": "The addresses Canopy will publish.",
"type": "array",
"items": {
"type": "string"
}
},
"last_error": {
"description": "Why the last publish attempt failed, if it did.",
"type": [
"string",
"null"
]
},
"name": {
"description": "The name, as Canopy normalised it.",
"type": "string"
},
"published": {
"description": "Whether the zone has caught up with what was asked for.",
"type": "boolean"
},
"published_addresses": {
"description": "The addresses Canopy has published so far. Differs from `addresses` until\nthe change has been reconciled into the zone.",
"type": "array",
"items": {
"type": "string"
}
}
}
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.addresses: Vec<String>The addresses Canopy will publish.
last_error: Option<String>Why the last publish attempt failed, if it did.
name: StringThe name, as Canopy normalised it.
published: boolWhether the zone has caught up with what was asked for.
published_addresses: Vec<String>The addresses Canopy has published so far. Differs from addresses until
the change has been reconciled into the zone.
Implementations§
Source§impl RegisteredName
impl RegisteredName
Sourcepub fn builder() -> RegisteredNameBuilder
pub fn builder() -> RegisteredNameBuilder
Create an instance of RegisteredName using the builder syntax
Trait Implementations§
Source§impl Clone for RegisteredName
impl Clone for RegisteredName
Source§fn clone(&self) -> RegisteredName
fn clone(&self) -> RegisteredName
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RegisteredName
impl Debug for RegisteredName
Source§impl<'de> Deserialize<'de> for RegisteredName
impl<'de> Deserialize<'de> for RegisteredName
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 Freeze for RegisteredName
impl RefUnwindSafe for RegisteredName
impl Send for RegisteredName
impl Sync for RegisteredName
impl Unpin for RegisteredName
impl UnsafeUnpin for RegisteredName
impl UnwindSafe for RegisteredName
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