Struct polywrap_plugin::UriRedirect
source · pub struct UriRedirect {
pub from: Uri,
pub to: Uri,
}Expand description
A utility struct to store a URI redirect.
Fields§
§from: UriSource URI
to: UriDestination URI
Implementations§
source§impl UriRedirect
impl UriRedirect
pub fn new(from: Uri, to: Uri) -> UriRedirect
Trait Implementations§
source§impl Clone for UriRedirect
impl Clone for UriRedirect
source§fn clone(&self) -> UriRedirect
fn clone(&self) -> UriRedirect
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 UriRedirect
impl Debug for UriRedirect
source§impl From<(&Uri, &Uri)> for UriRedirect
impl From<(&Uri, &Uri)> for UriRedirect
Allows conversion from a tuple of URI references to a UriRedirect.
source§impl From<(Uri, Uri)> for UriRedirect
impl From<(Uri, Uri)> for UriRedirect
Allows conversion from a tuple of URIs to a UriRedirect.
source§impl PartialEq for UriRedirect
impl PartialEq for UriRedirect
source§fn eq(&self, other: &UriRedirect) -> bool
fn eq(&self, other: &UriRedirect) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for UriRedirect
Auto Trait Implementations§
impl RefUnwindSafe for UriRedirect
impl Send for UriRedirect
impl Sync for UriRedirect
impl Unpin for UriRedirect
impl UnwindSafe for UriRedirect
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