pub struct RecordValue {Show 13 fields
pub uuid: Uuid,
pub zone_id: Uuid,
pub name: String,
pub record_type: String,
pub ttl: u32,
pub data: String,
pub geo_routing: Option<bool>,
pub balance_ratio: Option<u16>,
pub host_health: String,
pub managed_by: Option<String>,
pub created_at: i64,
pub updated_at: i64,
pub geo_bans: Option<Vec<GeoBan>>,
}Expand description
One member of an RRset, with its own uuid. data is in Core’s canonical text form
(e.g. names inside rdata as FQDNs with a trailing dot, TXT quoted).
geo_routing, balance_ratio, host_health and geo bans take effect on A and AAAA
values only.
Fields§
§uuid: UuidValue id; what writes address.
zone_id: UuidZone the value belongs to.
name: StringFull owner name of the group.
record_type: StringRecord type of the group, uppercase.
ttl: u32TTL in seconds; the same on every value of the group, changed only through
Records::set_ttl.
data: StringRecord data in canonical form (10 mail.example.com.).
geo_routing: Option<bool>true: Relay prefers this value for clients near the address’s location.
balance_ratio: Option<u16>Weight for picking which value is answered first; None or 0 means no weight.
host_health: StringHow the value’s health is decided: None, Up, Down or Auto (kept as a string
for forward compatibility; see HostHealthMode and
RecordValue::host_health_mode). Core fills None by default.
managed_by: Option<String>Who keeps the value when it is not the user: System, Redirect or Acme (kept as
a string for forward compatibility); None for the user’s own values. See
RecordManager, RecordValue::manager and RecordValue::is_locked.
created_at: i64Unix seconds.
updated_at: i64Unix seconds.
geo_bans: Option<Vec<GeoBan>>Only with include=geoBans.
Implementations§
Source§impl RecordValue
impl RecordValue
Sourcepub fn host_health_mode(&self) -> Option<HostHealthMode>
pub fn host_health_mode(&self) -> Option<HostHealthMode>
host_health in its typed form; None for a label this SDK version does not know.
Sourcepub fn manager(&self) -> Option<RecordManager>
pub fn manager(&self) -> Option<RecordManager>
managed_by in its typed form; None for the user’s own values and for labels this
SDK version does not know.
Trait Implementations§
Source§impl Clone for RecordValue
impl Clone for RecordValue
Source§fn clone(&self) -> RecordValue
fn clone(&self) -> RecordValue
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more