pub struct DnsRecordData {
pub priority: Option<f64>,
pub subdomain: Option<Option<String>>,
pub value: String,
}Expand description
DnsRecordData : Данные DNS-записи.
Fields§
§priority: Option<f64>Приоритет DNS-записи.
subdomain: Option<Option<String>>Поддомен.
value: StringЗначение DNS-записи.
Implementations§
Source§impl DnsRecordData
impl DnsRecordData
Sourcepub fn new(value: String) -> DnsRecordData
pub fn new(value: String) -> DnsRecordData
Данные DNS-записи.
Trait Implementations§
Source§impl Clone for DnsRecordData
impl Clone for DnsRecordData
Source§fn clone(&self) -> DnsRecordData
fn clone(&self) -> DnsRecordData
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 DnsRecordData
impl Debug for DnsRecordData
Source§impl Default for DnsRecordData
impl Default for DnsRecordData
Source§fn default() -> DnsRecordData
fn default() -> DnsRecordData
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DnsRecordData
impl<'de> Deserialize<'de> for DnsRecordData
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
Source§impl PartialEq for DnsRecordData
impl PartialEq for DnsRecordData
Source§fn eq(&self, other: &DnsRecordData) -> bool
fn eq(&self, other: &DnsRecordData) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for DnsRecordData
impl Serialize for DnsRecordData
impl StructuralPartialEq for DnsRecordData
Auto Trait Implementations§
impl Freeze for DnsRecordData
impl RefUnwindSafe for DnsRecordData
impl Send for DnsRecordData
impl Sync for DnsRecordData
impl Unpin for DnsRecordData
impl UnsafeUnpin for DnsRecordData
impl UnwindSafe for DnsRecordData
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