pub struct Configuration {
pub rust_log: String,
pub database_url: String,
pub jwt_secret: String,
pub allowed_host: String,
pub expo_access_token: String,
pub unrealspeech_token: String,
}
Expand description
App config
Fields§
§rust_log: String
Level of Rust logging
database_url: String
Database URL for Postgres
jwt_secret: String
JWT secret used for key creation
allowed_host: String
Host URL
expo_access_token: String
Token used by Expo API to send a notification
unrealspeech_token: String
Token used for text-to-speach API
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Configuration
impl<'de> Deserialize<'de> for Configuration
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Configuration
impl RefUnwindSafe for Configuration
impl Send for Configuration
impl Sync for Configuration
impl Unpin for Configuration
impl UnwindSafe for Configuration
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