pub struct Request {
pub host: Authority,
pub resource: Uri,
pub link_relation_types: Vec<LinkRelationType>,
}Fields§
§host: AuthorityThe host to query
TODO: This might actually be just the host name, not the full authority.
resource: UriQuery target.
This is the URI of the resource to query. It will be stored in the resource query
parameter.
link_relation_types: Vec<LinkRelationType>Link relation types
This is a list of link relation types to query for. Each link relation type will be stored
in a rel query parameter.
Trait Implementations§
source§impl TryFrom<&Request> for PathAndQuery
impl TryFrom<&Request> for PathAndQuery
source§type Error = InvalidUri
type Error = InvalidUri
The type returned in the event of a conversion error.
source§fn try_from(query: &Request) -> Result<PathAndQuery, InvalidUri>
fn try_from(query: &Request) -> Result<PathAndQuery, InvalidUri>
Performs the conversion.
Auto Trait Implementations§
impl !Freeze for Request
impl RefUnwindSafe for Request
impl Send for Request
impl Sync for Request
impl Unpin for Request
impl UnwindSafe for Request
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