pub struct ServerConfig<TB>{
pub app: String,
pub env_prefix: String,
pub private_key: String,
pub public_key: String,
pub auth_iss_public_key: String,
pub has_started_bootstrap: bool,
pub allowed_origins: Vec<String>,
pub allowed_methods: Vec<Method>,
pub boot_thread: TB,
}Fields§
§app: String§env_prefix: String§private_key: String§public_key: String§auth_iss_public_key: String§has_started_bootstrap: boolwhether the app bootstrap has started
allowed_origins: Vec<String>list of allowed CORS origins
allowed_methods: Vec<Method>list of allowed CORS origins
boot_thread: TBAuto Trait Implementations§
impl<TB> Freeze for ServerConfig<TB>where
TB: Freeze,
impl<TB> RefUnwindSafe for ServerConfig<TB>where
TB: RefUnwindSafe,
impl<TB> Send for ServerConfig<TB>
impl<TB> Sync for ServerConfig<TB>where
TB: Sync,
impl<TB> Unpin for ServerConfig<TB>where
TB: Unpin,
impl<TB> UnwindSafe for ServerConfig<TB>where
TB: UnwindSafe,
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