pub struct DnsTxtEntry {
pub key: Option<String>,
pub value: Option<Vec<u8>>,
/* private fields */
}Expand description
Represents a TXT record entry representing a key/value pair (RFC 6763 - section 6.3).
Fields§
§key: Option<String>The key string of the TXT record.
Maximum length of TXT key string supported by otDnsTxtEntryIterator is 64,
see OT_DNS_TXT_KEY_ITER_MAX_LENGTH.
Required.
value: Option<Vec<u8>>The value of the TXT record.
The overall key-value pair encoded length (including the key and “=”) must be 255 bytes or less.
Required.
Trait Implementations§
Source§impl Clone for DnsTxtEntry
impl Clone for DnsTxtEntry
Source§fn clone(&self) -> DnsTxtEntry
fn clone(&self) -> DnsTxtEntry
Returns a duplicate of the value. Read more
1.0.0 · 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 DnsTxtEntry
impl Debug for DnsTxtEntry
Source§impl<D: ResourceDialect> Decode<DnsTxtEntry, D> for DnsTxtEntry
impl<D: ResourceDialect> Decode<DnsTxtEntry, D> for DnsTxtEntry
Source§impl Default for DnsTxtEntry
impl Default for DnsTxtEntry
Source§fn default() -> DnsTxtEntry
fn default() -> DnsTxtEntry
Returns the “default value” for a type. Read more
Source§impl<D: ResourceDialect> Encode<DnsTxtEntry, D> for &DnsTxtEntry
impl<D: ResourceDialect> Encode<DnsTxtEntry, D> for &DnsTxtEntry
Source§impl PartialEq for DnsTxtEntry
impl PartialEq for DnsTxtEntry
Source§impl TypeMarker for DnsTxtEntry
impl TypeMarker for DnsTxtEntry
Source§type Owned = DnsTxtEntry
type Owned = DnsTxtEntry
The owned Rust type which this FIDL type decodes into.
Source§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
Returns the minimum required alignment of the inline portion of the
encoded object. It must be a (nonzero) power of two.
Source§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
Returns the size of the inline portion of the encoded object, including
padding for alignment. Must be a multiple of
inline_align.Source§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
Returns true if the memory layout of
Self::Owned matches the FIDL wire
format and encoding requires no validation. When true, we can optimize
encoding arrays and vectors of Self::Owned to a single memcpy. Read moreSource§fn decode_is_copy() -> bool
fn decode_is_copy() -> bool
Returns true if the memory layout of
Self::Owned matches the FIDL wire
format and decoding requires no validation. When true, we can optimize
decoding arrays and vectors of Self::Owned to a single memcpy.Source§impl ValueTypeMarker for DnsTxtEntry
impl ValueTypeMarker for DnsTxtEntry
Source§type Borrowed<'a> = &'a DnsTxtEntry
type Borrowed<'a> = &'a DnsTxtEntry
The Rust type to use for encoding. This is a particular
Encode<Self>
type cheaply obtainable from &Self::Owned. There are three cases: Read moreimpl Persistable for DnsTxtEntry
impl StructuralPartialEq for DnsTxtEntry
Auto Trait Implementations§
impl Freeze for DnsTxtEntry
impl RefUnwindSafe for DnsTxtEntry
impl Send for DnsTxtEntry
impl Sync for DnsTxtEntry
impl Unpin for DnsTxtEntry
impl UnwindSafe for DnsTxtEntry
Blanket Implementations§
Source§impl<T> Body for Twhere
T: Persistable,
impl<T> Body for Twhere
T: Persistable,
Source§type MarkerAtTopLevel = T
type MarkerAtTopLevel = T
The marker type to use when the body is at the top-level.
Source§type MarkerInResultUnion = T
type MarkerInResultUnion = T
The marker type to use when the body is nested in a result union.
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