pub struct ResolveRequest {
pub requested_location: String,
pub requested_ns: Option<Namespace>,
pub current_location: Option<Url>,
pub current_ns: Option<Namespace>,
}
Expand description
Contains information about the requested resolve action.
Fields§
§requested_location: String
Location of the requested schema.
requested_ns: Option<Namespace>
Namespace of the requested schema.
current_location: Option<Url>
Location of the current processed schema.
current_ns: Option<Namespace>
Namespace of the current processed schema.
Implementations§
Source§impl ResolveRequest
impl ResolveRequest
Sourcepub fn new<X: Into<String>>(requested_location: X) -> Self
pub fn new<X: Into<String>>(requested_location: X) -> Self
Create a new ResolveRequest
instance from the passed requested_location
.
Sourcepub fn requested_ns(self, ns: Namespace) -> Self
pub fn requested_ns(self, ns: Namespace) -> Self
Set the requested_ns
field of this ResolveRequest
instance.
Sourcepub fn current_ns(self, ns: Namespace) -> Self
pub fn current_ns(self, ns: Namespace) -> Self
Set the current_ns
field of this ResolveRequest
instance.
Sourcepub fn current_location<X: Into<Url>>(self, location: X) -> Self
pub fn current_location<X: Into<Url>>(self, location: X) -> Self
Set the current_location
field of this ResolveRequest
instance.
Trait Implementations§
Source§impl Debug for ResolveRequest
impl Debug for ResolveRequest
Auto Trait Implementations§
impl Freeze for ResolveRequest
impl RefUnwindSafe for ResolveRequest
impl Send for ResolveRequest
impl Sync for ResolveRequest
impl Unpin for ResolveRequest
impl UnwindSafe for ResolveRequest
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<X> SerializeBytes for Xwhere
X: ToString,
impl<X> SerializeBytes for Xwhere
X: ToString,
Source§impl<X> SerializeSync for Xwhere
X: WithSerializer,
impl<X> SerializeSync for Xwhere
X: WithSerializer,
Source§impl<X> WithBoxedSerializer for Xwhere
X: WithSerializer,
impl<X> WithBoxedSerializer for Xwhere
X: WithSerializer,
Source§impl<X> WithSerializer for Xwhere
X: SerializeBytes + Debug,
impl<X> WithSerializer for Xwhere
X: SerializeBytes + Debug,
Source§type Serializer<'x> = ContentSerializer<'x, X>
where
X: 'x
type Serializer<'x> = ContentSerializer<'x, X> where X: 'x
The serializer to use for this type.
Source§fn serializer<'ser>(
&'ser self,
name: Option<&'ser str>,
is_root: bool,
) -> Result<<X as WithSerializer>::Serializer<'ser>, Error>
fn serializer<'ser>( &'ser self, name: Option<&'ser str>, is_root: bool, ) -> Result<<X as WithSerializer>::Serializer<'ser>, Error>
Initializes a new serializer from the passed
value
. Read more