pub struct NewRecordValue {
pub zone_id: Uuid,
pub name: String,
pub record_type: String,
pub data: String,
pub ttl: Option<u32>,
pub geo_routing: Option<bool>,
pub balance_ratio: Option<u16>,
pub host_health: Option<HostHealthMode>,
}Expand description
POST /records body. ttl is required when the group does not exist yet (also after
its last value was deleted), and must match the group’s TTL otherwise.
Fields§
§zone_id: UuidZone to add to.
name: StringFull owner name (see crate::ops::qualify_name).
record_type: StringRecord type, any case.
data: StringRecord data as a user would write it in a zone file; Core canonicalizes it.
ttl: Option<u32>TTL in seconds; see the type’s docs for when it is required.
geo_routing: Option<bool>§balance_ratio: Option<u16>§host_health: Option<HostHealthMode>See HostHealthMode; Core’s default (None) when omitted. Auto is rejected
with ErrorCode::Validation: a value gets Auto
when a health check is created for it.
Trait Implementations§
Source§impl Clone for NewRecordValue
impl Clone for NewRecordValue
Source§fn clone(&self) -> NewRecordValue
fn clone(&self) -> NewRecordValue
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 NewRecordValue
impl Debug for NewRecordValue
Auto Trait Implementations§
impl Freeze for NewRecordValue
impl RefUnwindSafe for NewRecordValue
impl Send for NewRecordValue
impl Sync for NewRecordValue
impl Unpin for NewRecordValue
impl UnsafeUnpin for NewRecordValue
impl UnwindSafe for NewRecordValue
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