pub struct ServerProps<M: MutableStore, T: TranslationsManager> {
    pub opts: ServerOptions,
    pub immutable_store: ImmutableStore,
    pub mutable_store: M,
    pub translations_manager: T,
    pub global_state_creator: GlobalStateCreator,
}
Expand description

The full set of properties that all server integrations take.

Fields

opts: ServerOptions

The options for setting up the server.

immutable_store: ImmutableStore

An immutable store to use.

mutable_store: M

A mutable store to use.

translations_manager: T

A translations manager to use.

global_state_creator: GlobalStateCreator

The global state creator. This is used to avoid issues with async and cloning in Actix Web.

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.