pub struct CompletionContext {
pub chain_anchor: Option<ChainAnchor>,
pub peer_identity: Option<String>,
pub proxy_identity: Option<String>,
pub target_identity: Option<String>,
pub direct_relay_fallback: bool,
}Expand description
Optional identities and chain anchor attached to a completed resolution.
Fields§
§chain_anchor: Option<ChainAnchor>Locally validated chain anchor.
peer_identity: Option<String>Relay or P2P peer identity.
proxy_identity: Option<String>ODoH proxy identity.
target_identity: Option<String>ODoH target identity.
direct_relay_fallback: boolWhether ODoH privacy downgraded to direct relay.
Trait Implementations§
Source§impl Clone for CompletionContext
impl Clone for CompletionContext
Source§fn clone(&self) -> CompletionContext
fn clone(&self) -> CompletionContext
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 CompletionContext
impl Debug for CompletionContext
Source§impl Default for CompletionContext
impl Default for CompletionContext
Source§fn default() -> CompletionContext
fn default() -> CompletionContext
Returns the “default value” for a type. Read more
impl Eq for CompletionContext
Source§impl PartialEq for CompletionContext
impl PartialEq for CompletionContext
impl StructuralPartialEq for CompletionContext
Auto Trait Implementations§
impl Freeze for CompletionContext
impl RefUnwindSafe for CompletionContext
impl Send for CompletionContext
impl Sync for CompletionContext
impl Unpin for CompletionContext
impl UnsafeUnpin for CompletionContext
impl UnwindSafe for CompletionContext
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.