pub struct Settings<DbSettings> {Show 14 fields
pub host: String,
pub port: u16,
pub path: String,
pub open_registration: bool,
pub max_history_length: usize,
pub max_record_size: usize,
pub page_size: i64,
pub register_webhook_url: Option<String>,
pub register_webhook_username: String,
pub metrics: Metrics,
pub tls: Tls,
pub mail: Mail,
pub fake_version: Option<String>,
pub db_settings: DbSettings,
}
Fields§
§host: String
§port: u16
§path: String
§open_registration: bool
§max_history_length: usize
§max_record_size: usize
§page_size: i64
§register_webhook_url: Option<String>
§register_webhook_username: String
§metrics: Metrics
§tls: Tls
§mail: Mail
§fake_version: Option<String>
Advertise a version that is not what we are actually running Many clients compare their version with api.atuin.sh, and if they differ, notify the user that an update is available. Now that we take beta releases, we should be able to advertise a different version to avoid notifying users when the server runs something that is not a stable release.
db_settings: DbSettings
Implementations§
Trait Implementations§
Source§impl<'de, DbSettings> Deserialize<'de> for Settings<DbSettings>where
DbSettings: Deserialize<'de>,
impl<'de, DbSettings> Deserialize<'de> for Settings<DbSettings>where
DbSettings: Deserialize<'de>,
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<DbSettings> Freeze for Settings<DbSettings>where
DbSettings: Freeze,
impl<DbSettings> RefUnwindSafe for Settings<DbSettings>where
DbSettings: RefUnwindSafe,
impl<DbSettings> Send for Settings<DbSettings>where
DbSettings: Send,
impl<DbSettings> Sync for Settings<DbSettings>where
DbSettings: Sync,
impl<DbSettings> Unpin for Settings<DbSettings>where
DbSettings: Unpin,
impl<DbSettings> UnwindSafe for Settings<DbSettings>where
DbSettings: 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more