pub struct ConfigFields {Show 14 fields
pub server_port: u16,
pub server_host: String,
pub server_url: String,
pub surreal_data_path: String,
pub surreal_ns: String,
pub surreal_db: String,
pub jwt_secret: String,
pub jwt_access_minutes: i64,
pub jwt_refresh_days: i64,
pub enable_testing: bool,
pub default_per_second: u64,
pub default_burst_size: u32,
pub testing_per_second: u64,
pub testing_burst_size: u32,
}Expand description
config settings loaded from encrypted secrets.enc
Fields§
§server_port: u16HTTP port the server binds to (e.g. 3000)
server_host: StringIP address the server binds to (e.g. 127.0.0.1 or 0.0.0.0)
server_url: StringFull server URL including protocol and port
surreal_data_path: StringPath to the directory where SurrealDB stores its on-disk data
surreal_ns: StringSurrealDB namespace to use
surreal_db: StringSurrealDB database name within the namespace
jwt_secret: StringSecret key used to sign and verify JWT tokens
jwt_access_minutes: i64How long an access token remains valid, in minutes
jwt_refresh_days: i64How long a refresh token remains valid, in days
enable_testing: boolWhether to run the test suite on server startup
default_per_second: u64Rate limit: sustained request rate for standard endpoints
default_burst_size: u32Rate limit: maximum burst size for standard endpoints
testing_per_second: u64Rate limit: sustained request rate for test/dev endpoints
testing_burst_size: u32Rate limit: maximum burst size for test/dev endpoints
Trait Implementations§
Source§impl Clone for ConfigFields
impl Clone for ConfigFields
Source§fn clone(&self) -> ConfigFields
fn clone(&self) -> ConfigFields
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ConfigFields
impl Debug for ConfigFields
Source§impl Default for ConfigFields
impl Default for ConfigFields
Source§impl<'de> Deserialize<'de> for ConfigFieldswhere
ConfigFields: Default,
impl<'de> Deserialize<'de> for ConfigFieldswhere
ConfigFields: Default,
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 ConfigFields
impl RefUnwindSafe for ConfigFields
impl Send for ConfigFields
impl Sync for ConfigFields
impl Unpin for ConfigFields
impl UnsafeUnpin for ConfigFields
impl UnwindSafe for ConfigFields
Blanket Implementations§
§impl<U> As for U
impl<U> As for U
§fn as_<T>(self) -> Twhere
T: CastFrom<U>,
fn as_<T>(self) -> Twhere
T: CastFrom<U>,
Casts
self to type T. The semantics of numeric casting with the as operator are followed, so <T as As>::as_::<U> can be used in the same way as T as U for numeric conversions. Read moreSource§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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Applies the layer to a service and wraps it in [
Layered].