pub struct ModifyTXTRecord<'a> {
pub domain: &'a str,
pub sub_domain: &'a str,
pub record_line: RecordLine<'a>,
pub value: &'a str,
pub record_type: RecordType<'a>,
pub record_id: u64,
pub domain_id: Option<u64>,
pub record_line_id: Option<&'a str>,
pub ttl: Option<u32>,
pub status: Option<&'a str>,
pub remark: Option<&'a str>,
}Expand description
Request parameters for modifying a TXT record.
Fieldsยง
ยงdomain: &'a strยงsub_domain: &'a strยงrecord_line: RecordLine<'a>ยงvalue: &'a strยงrecord_type: RecordType<'a>ยงrecord_id: u64ยงdomain_id: Option<u64>ยงrecord_line_id: Option<&'a str>ยงttl: Option<u32>ยงstatus: Option<&'a str>ยงremark: Option<&'a str>Implementationsยง
Sourceยงimpl<'a> ModifyTXTRecord<'a>
impl<'a> ModifyTXTRecord<'a>
Sourcepub fn new(
domain: &'a str,
sub_domain: &'a str,
record_line: &'a str,
value: &'a str,
record_id: u64,
) -> Self
pub fn new( domain: &'a str, sub_domain: &'a str, record_line: &'a str, value: &'a str, record_id: u64, ) -> Self
Create a TXT record update request (defaults RecordType to "TXT").
pub fn with_domain_id(self, domain_id: u64) -> Self
pub fn with_record_line_id(self, record_line_id: &'a str) -> Self
pub fn with_ttl(self, ttl: u32) -> Self
pub fn with_status(self, status: &'a str) -> Self
pub fn with_remark(self, remark: &'a str) -> Self
pub fn with_sub_domain(self, sub_domain: &'a str) -> Self
pub fn with_record_type(self, record_type: RecordType<'a>) -> Self
pub fn with_record_line(self, record_line: RecordLine<'a>) -> Self
Trait Implementationsยง
Sourceยงimpl<'a> Endpoint for ModifyTXTRecord<'a>
impl<'a> Endpoint for ModifyTXTRecord<'a>
type Output = ModifyTXTRecordResponse
fn service(&self) -> Cow<'static, str>
fn action(&self) -> Cow<'static, str>
fn version(&self) -> Cow<'static, str>
fn region(&self) -> Option<Cow<'_, str>>
fn payload(&self) -> Value
fn scheme(&self) -> Cow<'static, str>
fn host(&self) -> Cow<'_, str>
fn path(&self) -> Cow<'_, str>
fn extra_headers(&self) -> Option<Vec<(Cow<'_, str>, Cow<'_, str>)>>
fn parse(&self, body: Value) -> Result<Self::Output, TencentCloudError>
Auto Trait Implementationsยง
impl<'a> Freeze for ModifyTXTRecord<'a>
impl<'a> RefUnwindSafe for ModifyTXTRecord<'a>
impl<'a> Send for ModifyTXTRecord<'a>
impl<'a> Sync for ModifyTXTRecord<'a>
impl<'a> Unpin for ModifyTXTRecord<'a>
impl<'a> UnwindSafe for ModifyTXTRecord<'a>
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