pub struct DnsRecordUpsertInput {
pub zone: String,
pub name: String,
pub record_type: String,
pub content: String,
pub ttl: u32,
pub proxied: bool,
pub match_content: bool,
}Expand description
Request body for dns.record.upsert.
Fields§
§zone: StringZone apex name, e.g. "yah.dev". The adapter resolves it to a
provider-issued zone ID.
name: StringFully-qualified record name, e.g. "yubaba.yah.dev". Apex records
may also be passed as "@" — adapters normalise as needed.
record_type: StringDNS record type ("A", "AAAA", "CNAME", "TXT", "MX", …).
content: StringRecord value: for CNAME the target hostname; for A/AAAA the IP; for TXT the verbatim string content.
ttl: u32TTL in seconds. 1 means “automatic” (effective TTL chosen by the
provider). Defaults to 1.
proxied: boolRoute through Cloudflare’s reverse proxy (orange-cloud). Only
meaningful on Cloudflare for A/AAAA/CNAME records; adapters for
other providers should ignore this field. Defaults to false.
match_content: boolMatch the record to replace by (name, type, content) rather than
(name, type) — R859-F1.
false (the default, and the only shape before R859) is right for a
single-valued name: “whatever CNAME is at cdn.yah.dev, make it point
here”. true is required for a multi-valued RRset such as a
round-robin apex, where several A records legitimately share
name+type: it turns the verb into ensure-this-exact-record-exists, so
building a 2-origin apex is two upserts rather than one upsert that
overwrites the other origin.
Trait Implementations§
Source§impl Clone for DnsRecordUpsertInput
impl Clone for DnsRecordUpsertInput
Source§fn clone(&self) -> DnsRecordUpsertInput
fn clone(&self) -> DnsRecordUpsertInput
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for DnsRecordUpsertInput
impl Debug for DnsRecordUpsertInput
Source§impl<'de> Deserialize<'de> for DnsRecordUpsertInput
impl<'de> Deserialize<'de> for DnsRecordUpsertInput
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>,
Auto Trait Implementations§
impl Freeze for DnsRecordUpsertInput
impl RefUnwindSafe for DnsRecordUpsertInput
impl Send for DnsRecordUpsertInput
impl Sync for DnsRecordUpsertInput
impl Unpin for DnsRecordUpsertInput
impl UnsafeUnpin for DnsRecordUpsertInput
impl UnwindSafe for DnsRecordUpsertInput
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSend for T
impl<T> DowncastSend for T
Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
impl<T> ErasedDestructor for Twhere
T: 'static,
impl<T> Fruit for T
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more