pub struct ResolverRegistration {
pub resolver: Option<String>,
pub source: Option<Ref>,
pub scheme: Option<String>,
}
Expand description
A mapping of URL scheme to resolver name.
Fields§
§resolver: Option<String>
§source: Option<Ref>
§scheme: Option<String>
Trait Implementations§
Source§impl Clone for ResolverRegistration
impl Clone for ResolverRegistration
Source§fn clone(&self) -> ResolverRegistration
fn clone(&self) -> ResolverRegistration
Returns a copy 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 ResolverRegistration
impl Debug for ResolverRegistration
Source§impl Encodable for ResolverRegistration
impl Encodable for ResolverRegistration
Source§type Encoded = WireResolverRegistration
type Encoded = WireResolverRegistration
The wire type for the value.
§const COPY_OPTIMIZATION: CopyOptimization<Self> = _
const COPY_OPTIMIZATION: CopyOptimization<Self> = _
An optimization flag that allows the bytes of this type to be copied directly during
encoding instead of calling
encode
. Read moreSource§impl<___E> Encode<___E> for ResolverRegistrationwhere
___E: Encoder + ?Sized,
impl<___E> Encode<___E> for ResolverRegistrationwhere
___E: Encoder + ?Sized,
Source§impl TakeFrom<WireResolverRegistration> for ResolverRegistration
impl TakeFrom<WireResolverRegistration> for ResolverRegistration
Source§fn take_from(from: &WireResolverRegistration) -> Self
fn take_from(from: &WireResolverRegistration) -> Self
Converts from the given
T
, taking any resources that can’t be cloned.§const COPY_OPTIMIZATION: CopyOptimization<Self> = _
const COPY_OPTIMIZATION: CopyOptimization<Self> = _
An optimization flag that allows the bytes of this type to be copied directly during
conversion instead of calling
take_from
. Read moreAuto Trait Implementations§
impl Freeze for ResolverRegistration
impl RefUnwindSafe for ResolverRegistration
impl Send for ResolverRegistration
impl Sync for ResolverRegistration
impl Unpin for ResolverRegistration
impl UnwindSafe for ResolverRegistration
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