pub struct Redirector { /* private fields */ }Expand description
Stores the URL that users should be redirected to.
Implementations§
Source§impl Redirector
impl Redirector
Sourcepub fn new<T: AsRef<str>, U: AsRef<str>>(
site_url: T,
return_url: U,
) -> Result<Self, Error>
pub fn new<T: AsRef<str>, U: AsRef<str>>( site_url: T, return_url: U, ) -> Result<Self, Error>
§Example
let redirector = Redirector::new("http://localhost:8080", "/callback");Trait Implementations§
Source§impl Clone for Redirector
impl Clone for Redirector
Source§fn clone(&self) -> Redirector
fn clone(&self) -> Redirector
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for Redirector
impl RefUnwindSafe for Redirector
impl Send for Redirector
impl Sync for Redirector
impl Unpin for Redirector
impl UnwindSafe for Redirector
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