[][src]Struct seed::app::builder::init::Init

pub struct Init<Mdl> {
    pub model: Mdl,
    pub url_handling: UrlHandling,
    pub mount_type: MountType,
}
Deprecated since 0.5.0:

Part of old Init API. Use a combination of BeforeMount and AfterMount instead.

Used as a flexible wrapper for the init function.

Fields

model: Mdl
Deprecated since 0.5.0:

Part of old Init API. Use AfterMount instead.

Initial model to be used when the app begins.

url_handling: UrlHandling
Deprecated since 0.5.0:

Part of old Init API. Use AfterMount instead.

How to handle initial url routing. Defaults to UrlHandling::PassToRoutes in the constructors.

mount_type: MountType
Deprecated since 0.5.0:

Part of old Init API. Use BeforeMount instead.

How to handle elements already present in the mount. Defaults to MountType::Append in the constructors.

Methods

impl<Mdl> Init<Mdl>[src]

pub const fn new(model: Mdl) -> Self[src]

Deprecated since 0.5.0:

Part of old Init API. Use AfterMount instead.

pub const fn new_with_url_handling(
    model: Mdl,
    url_handling: UrlHandling
) -> Self
[src]

Deprecated since 0.5.0:

Part of old Init API. Use AfterMount instead.

Trait Implementations

impl<Mdl: Clone> Clone for Init<Mdl>[src]

impl<Mdl: Copy> Copy for Init<Mdl>[src]

impl<Mdl: Debug> Debug for Init<Mdl>[src]

impl<Mdl: Default> Default for Init<Mdl>[src]

impl<Mdl: Eq> Eq for Init<Mdl>[src]

impl<Mdl: Hash> Hash for Init<Mdl>[src]

impl<Mdl: PartialEq> PartialEq<Init<Mdl>> for Init<Mdl>[src]

impl<Mdl> StructuralEq for Init<Mdl>[src]

impl<Mdl> StructuralPartialEq for Init<Mdl>[src]

Auto Trait Implementations

impl<Mdl> RefUnwindSafe for Init<Mdl> where
    Mdl: RefUnwindSafe

impl<Mdl> Send for Init<Mdl> where
    Mdl: Send

impl<Mdl> Sync for Init<Mdl> where
    Mdl: Sync

impl<Mdl> Unpin for Init<Mdl> where
    Mdl: Unpin

impl<Mdl> UnwindSafe for Init<Mdl> where
    Mdl: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.