#[non_exhaustive]pub struct RegisterNameArgs {
pub addresses: Vec<String>,
pub name: String,
}Expand description
The name a server should be reachable at, and where.
JSON schema
{
"description": "The name a server should be reachable at, and where.",
"type": "object",
"required": [
"addresses",
"name"
],
"properties": {
"addresses": {
"description": "Every external address this server is reachable at. IPv4 addresses become\nA records and IPv6 addresses AAAA records, replacing whatever was\nregistered before. An empty list withdraws the name.",
"type": "array",
"items": {
"type": "string"
}
},
"name": {
"description": "The name to publish records at. Must sit within a domain this server's\ngroup controls.",
"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>Every external address this server is reachable at. IPv4 addresses become A records and IPv6 addresses AAAA records, replacing whatever was registered before. An empty list withdraws the name.
name: StringThe name to publish records at. Must sit within a domain this server’s group controls.
Implementations§
Source§impl RegisterNameArgs
impl RegisterNameArgs
Sourcepub fn builder() -> RegisterNameArgsBuilder
pub fn builder() -> RegisterNameArgsBuilder
Create an instance of RegisterNameArgs using the builder syntax
Trait Implementations§
Source§impl Clone for RegisterNameArgs
impl Clone for RegisterNameArgs
Source§fn clone(&self) -> RegisterNameArgs
fn clone(&self) -> RegisterNameArgs
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 RegisterNameArgs
impl Debug for RegisterNameArgs
Source§impl<'de> Deserialize<'de> for RegisterNameArgs
impl<'de> Deserialize<'de> for RegisterNameArgs
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 RegisterNameArgs
impl RefUnwindSafe for RegisterNameArgs
impl Send for RegisterNameArgs
impl Sync for RegisterNameArgs
impl Unpin for RegisterNameArgs
impl UnsafeUnpin for RegisterNameArgs
impl UnwindSafe for RegisterNameArgs
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