pub struct ServiceBinding {
pub name: DomainName,
pub ttl: u32,
pub priority: u16,
pub target_name: DomainName,
pub parameters: BTreeSet<ServiceParameter>,
pub https: bool,
}
Expand description
A Service Binding record for locating alternative endpoints for a service.
Fields§
§name: DomainName
§ttl: u32
§priority: u16
The SvcPriority
field, a value between 0 and 65535
SVCB resource records with a smaller priority SHOULD be given priority over resource records
with a larger value.
target_name: DomainName
§parameters: BTreeSet<ServiceParameter>
§https: bool
Indicates whether or not this is an HTTPS record (RFC section 8)
Implementations§
Source§impl ServiceBinding
impl ServiceBinding
pub fn mode(&self) -> ServiceBindingMode
Trait Implementations§
Source§impl Clone for ServiceBinding
impl Clone for ServiceBinding
Source§fn clone(&self) -> ServiceBinding
fn clone(&self) -> ServiceBinding
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 ServiceBinding
impl Debug for ServiceBinding
Source§impl Display for ServiceBinding
impl Display for ServiceBinding
Source§impl Hash for ServiceBinding
impl Hash for ServiceBinding
Source§impl PartialEq for ServiceBinding
impl PartialEq for ServiceBinding
impl Eq for ServiceBinding
impl StructuralPartialEq for ServiceBinding
Auto Trait Implementations§
impl Freeze for ServiceBinding
impl RefUnwindSafe for ServiceBinding
impl Send for ServiceBinding
impl Sync for ServiceBinding
impl Unpin for ServiceBinding
impl UnwindSafe for ServiceBinding
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