pub struct RegisterRecordData {
pub flags: RegisterRecordFlags,
pub interface: Interface,
pub rr_class: Class,
pub ttl: u32,
/* private fields */
}Expand description
Optional data when registering a record; either use its default value or customize it like:
RegisterRecordData {
ttl: 60,
..Default::default()
};Fields§
§flags: RegisterRecordFlagsflags for registration
interface: Interfaceinterface to register record on
rr_class: Classclass of the resource record (default: IN)
ttl: u32time to live of the resource record in seconds (passing 0 will select a sensible default)
Trait Implementations§
Source§impl Clone for RegisterRecordData
impl Clone for RegisterRecordData
Source§fn clone(&self) -> RegisterRecordData
fn clone(&self) -> RegisterRecordData
Returns a duplicate 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 RegisterRecordData
impl Debug for RegisterRecordData
Source§impl Default for RegisterRecordData
impl Default for RegisterRecordData
Source§impl Hash for RegisterRecordData
impl Hash for RegisterRecordData
Source§impl Ord for RegisterRecordData
impl Ord for RegisterRecordData
Source§fn cmp(&self, other: &RegisterRecordData) -> Ordering
fn cmp(&self, other: &RegisterRecordData) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for RegisterRecordData
impl PartialEq for RegisterRecordData
Source§impl PartialOrd for RegisterRecordData
impl PartialOrd for RegisterRecordData
impl Copy for RegisterRecordData
impl Eq for RegisterRecordData
impl StructuralPartialEq for RegisterRecordData
Auto Trait Implementations§
impl Freeze for RegisterRecordData
impl RefUnwindSafe for RegisterRecordData
impl Send for RegisterRecordData
impl Sync for RegisterRecordData
impl Unpin for RegisterRecordData
impl UnwindSafe for RegisterRecordData
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