pub struct NodeRecordOptions {
pub station_id: Option<[u8; 32]>,
pub caps_hint: String,
pub display_name: String,
pub hostname: String,
pub endpoint: String,
pub city: String,
pub country: String,
pub lat: Option<f64>,
pub lng: Option<f64>,
pub kind: String,
pub peers: Vec<[u8; 32]>,
pub ttl_ms: u64,
}Expand description
A node record’s optional fields: station_id is None for the node
itself; empty text and None coordinates are left out; kind is
“station” or “daemon”; peers are kept sorted and once each; ttl_ms is
0 for the default, 48 hours.
Fields§
§station_id: Option<[u8; 32]>§caps_hint: String§display_name: String§hostname: String§endpoint: String§city: String§country: String§lat: Option<f64>§lng: Option<f64>§kind: String§peers: Vec<[u8; 32]>§ttl_ms: u64Trait Implementations§
Source§impl Clone for NodeRecordOptions
impl Clone for NodeRecordOptions
Source§impl Debug for NodeRecordOptions
impl Debug for NodeRecordOptions
Source§impl Default for NodeRecordOptions
impl Default for NodeRecordOptions
Source§impl PartialEq for NodeRecordOptions
impl PartialEq for NodeRecordOptions
impl StructuralPartialEq for NodeRecordOptions
Auto Trait Implementations§
impl Freeze for NodeRecordOptions
impl RefUnwindSafe for NodeRecordOptions
impl Send for NodeRecordOptions
impl Sync for NodeRecordOptions
impl Unpin for NodeRecordOptions
impl UnsafeUnpin for NodeRecordOptions
impl UnwindSafe for NodeRecordOptions
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