pub struct ResolveRequest {
pub requested_location: String,
pub requested_ns: Option<Namespace>,
pub current_location: Option<Url>,
pub current_ns: Option<Namespace>,
pub request_type: ResolveRequestType,
}
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.
request_type: ResolveRequestType
Indicates wether the request was initiated by the user, an import or an include.
Implementations§
Source§impl ResolveRequest
impl ResolveRequest
Sourcepub fn new<X: Into<String>>(
requested_location: X,
request_type: ResolveRequestType,
) -> Self
pub fn new<X: Into<String>>( requested_location: X, request_type: ResolveRequestType, ) -> Self
Create a new ResolveRequest
instance from the passed requested_location
and request_type
.
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