userp

Struct Routes

source
pub struct Routes<T = &'static str> {
Show 31 fields pub home: T, pub login: T, pub login_password: T, pub login_email: T, pub login_oauth: T, pub login_oauth_provider: T, pub signup: T, pub signup_password: T, pub signup_email: T, pub signup_oauth: T, pub signup_oauth_provider: T, pub user: T, pub user_delete: T, pub logout: T, pub post_logout: T, pub user_verify_session: T, pub user_password_set: T, pub user_password_delete: T, pub user_oauth_link: T, pub user_oauth_link_provider: T, pub user_session_delete: T, pub user_oauth_refresh: T, pub user_oauth_refresh_provider: T, pub user_oauth_delete: T, pub user_email_verify: T, pub user_email_add: T, pub user_email_delete: T, pub user_email_enable_login: T, pub user_email_disable_login: T, pub password_send_reset: T, pub password_reset: T,
}

Fields§

§home: T§login: T§login_password: T§login_email: T§login_oauth: T§login_oauth_provider: T§signup: T§signup_password: T§signup_email: T§signup_oauth: T§signup_oauth_provider: T§user: T§user_delete: T§logout: T§post_logout: T§user_verify_session: T§user_password_set: T§user_password_delete: T§user_oauth_link: T§user_oauth_link_provider: T§user_session_delete: T§user_oauth_refresh: T§user_oauth_refresh_provider: T§user_oauth_delete: T§user_email_verify: T§user_email_add: T§user_email_delete: T§user_email_enable_login: T§user_email_disable_login: T§password_send_reset: T§password_reset: T

Implementations§

source§

impl Routes<&'static str>

source

pub fn with_prefix(self, prefix: &'static str) -> Routes<String>

Trait Implementations§

source§

impl<T: Sized> AsRef<Routes<T>> for Routes<T>

source§

fn as_ref(&self) -> &Routes<T>

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl<T: Clone> Clone for Routes<T>

source§

fn clone(&self) -> Routes<T>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<T: Debug> Debug for Routes<T>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for Routes<&'static str>

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl<'a> From<&'a Routes<String>> for Routes<&'a str>

source§

fn from(value: &'a Routes<String>) -> Self

Converts to this type from the input type.
source§

impl From<Routes> for Routes<String>

source§

fn from(value: Routes<&'static str>) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

§

impl<T> Freeze for Routes<T>
where T: Freeze,

§

impl<T> RefUnwindSafe for Routes<T>
where T: RefUnwindSafe,

§

impl<T> Send for Routes<T>
where T: Send,

§

impl<T> Sync for Routes<T>
where T: Sync,

§

impl<T> Unpin for Routes<T>
where T: Unpin,

§

impl<T> UnwindSafe for Routes<T>
where T: UnwindSafe,

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> Chain<T> for T

source§

fn len(&self) -> usize

The number of items that this chain link consists of.
source§

fn append_to(self, v: &mut Vec<T>)

Append the elements in this link to the chain.
source§

impl<T> CloneToUninit for T
where T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> Container<T> for T
where T: Clone,

source§

type Iter = Once<T>

An iterator over the items within this container, by value.
source§

fn get_iter(&self) -> <T as Container<T>>::Iter

Iterate over the elements of the container (using internal iteration because GATs are unstable).
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> FromRef<T> for T
where T: Clone,

source§

fn from_ref(input: &T) -> T

Converts to this type from a reference to the input type.
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

source§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

impl<T> ErasedDestructor for T
where T: 'static,

source§

impl<T> MaybeSendSync for T

source§

impl<T> OrderedContainer<T> for T
where T: Clone,