Enum portier::ResponseMode
source · pub enum ResponseMode {
Fragment,
FormPost,
}
Expand description
Supported response modes.
The response mode specifies how the server instructs the user agent to return a response to the
redirect_uri
of the client.
Variants§
Fragment
Send the response data in the URL fragment.
Additional client-side JavaScript is required to use this mode, because the URL fragment is not sent to the server.
FormPost
Send the response data in a POST request with an application/x-www-form-urlencoded
body.
Implementations§
Trait Implementations§
source§impl Clone for ResponseMode
impl Clone for ResponseMode
source§fn clone(&self) -> ResponseMode
fn clone(&self) -> ResponseMode
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 Default for ResponseMode
impl Default for ResponseMode
source§impl<'de> Deserialize<'de> for ResponseMode
impl<'de> Deserialize<'de> for ResponseMode
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for ResponseMode
impl PartialEq for ResponseMode
source§fn eq(&self, other: &ResponseMode) -> bool
fn eq(&self, other: &ResponseMode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for ResponseMode
impl Eq for ResponseMode
impl StructuralEq for ResponseMode
impl StructuralPartialEq for ResponseMode
Auto Trait Implementations§
impl RefUnwindSafe for ResponseMode
impl Send for ResponseMode
impl Sync for ResponseMode
impl Unpin for ResponseMode
impl UnwindSafe for ResponseMode
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<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.