[][src]Struct splinter::biome::rest_api::BiomeRestResourceManagerBuilder

pub struct BiomeRestResourceManagerBuilder { /* fields omitted */ }

Builder for BiomeRestResourceManager

Methods

impl BiomeRestResourceManagerBuilder[src]

pub fn with_user_store(
    self,
    pool: ConnectionPool
) -> BiomeRestResourceManagerBuilder
[src]

Sets a UserStore for the BiomeRestResourceManager

Arguments

  • pool: ConnectionPool to database that will serve as backend for UserStore

pub fn with_key_store(
    self,
    pool: ConnectionPool
) -> BiomeRestResourceManagerBuilder
[src]

Sets a KeyStore for the BiomeRestResourceManager

Arguments

  • pool: ConnectionPool to database that will serve as backend for KeyStore

pub fn with_rest_config(
    self,
    config: BiomeRestConfig
) -> BiomeRestResourceManagerBuilder
[src]

Sets a BiomeRestConfig for the BiomeRestResourceManager

Arguments

  • config: the BiomeRestConfig that will be used to configure the Biome resources

pub fn with_credentials_store(
    self,
    pool: ConnectionPool
) -> BiomeRestResourceManagerBuilder
[src]

Sets a CredentialsStore for the BiomeRestResourceManager

Arguments

  • pool: ConnectionPool to database that will serve as backend for CredentialsStore

pub fn set_token_secret_manager(
    self,
    secret_manager: impl SecretManager + 'static
) -> BiomeRestResourceManagerBuilder
[src]

Sets a SecretManager for JWT tokens for the BiomeRestResourceManager

Arguments

  • secret_manager: the SecretManager to be used for fetching and generating secrets to sign and verify JWT tokens

pub fn build(
    self
) -> Result<BiomeRestResourceManager, BiomeRestResourceManagerBuilderError>
[src]

Consumes the builder and returns a BiomeRestResourceManager

Trait Implementations

Auto Trait Implementations

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<T> From<T> for T[src]

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

impl<T> IntoSql for T

impl<T> SafeBorrow<T> for T where
    T: ?Sized

impl<T> Same<T> for T

type Output = T

Should always be Self

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.

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