pub struct ServiceSettings {Show 14 fields
pub address: SocketAddr,
pub cache_control: Option<String>,
pub readonly_mode: Option<bool>,
pub cors_allowed_origins: Option<AllowedOrigins>,
pub cors_allowed_headers: Option<AllowedHeaders>,
pub cors_allowed_methods: Option<AllowedMethods>,
pub cors_exposed_headers: Option<ExposedHeaders>,
pub cors_max_age_secs: Option<u64>,
pub tls_cert_file: Option<String>,
pub tls_priv_key_file: Option<String>,
pub timeout_ms: Option<u64>,
pub tls: Tls,
pub cors: Cors,
pub disable_keepalive: Option<bool>,
}Fields§
§address: SocketAddrBind address
cache_control: Option<String>cache control options
readonly_mode: Option<bool>Flag for read only mode
cors_allowed_origins: Option<AllowedOrigins>§cors_allowed_headers: Option<AllowedHeaders>§cors_allowed_methods: Option<AllowedMethods>§cors_exposed_headers: Option<ExposedHeaders>§cors_max_age_secs: Option<u64>§tls_cert_file: Option<String>path to server X.509 cert chain file. Must be PEM-encoded
tls_priv_key_file: Option<String>§timeout_ms: Option<u64>Rpc timeout - how long (milliseconds) to wait for component’s response before returning a status 503 to the http client If not set, uses the system-wide rpc timeout
tls: Tls👎Deprecated since 0.22.0: Use top-level fields instead
§cors: Cors👎Deprecated since 0.22.0: Use top-level fields instead
§disable_keepalive: Option<bool>Trait Implementations§
Source§impl Clone for ServiceSettings
impl Clone for ServiceSettings
Source§fn clone(&self) -> ServiceSettings
fn clone(&self) -> ServiceSettings
Returns a duplicate of the value. Read more
1.0.0 · 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 ServiceSettings
impl Debug for ServiceSettings
Source§impl Default for ServiceSettings
impl Default for ServiceSettings
Source§fn default() -> ServiceSettings
fn default() -> ServiceSettings
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ServiceSettings
impl<'de> Deserialize<'de> for ServiceSettings
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
Source§impl PartialEq for ServiceSettings
impl PartialEq for ServiceSettings
Source§impl Serialize for ServiceSettings
impl Serialize for ServiceSettings
impl Eq for ServiceSettings
impl StructuralPartialEq for ServiceSettings
Auto Trait Implementations§
impl Freeze for ServiceSettings
impl RefUnwindSafe for ServiceSettings
impl Send for ServiceSettings
impl Sync for ServiceSettings
impl Unpin for ServiceSettings
impl UnwindSafe for ServiceSettings
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> FromBase64 for Twhere
T: for<'de> Deserialize<'de>,
impl<T> FromBase64 for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> GetSetFdFlags for T
impl<T> GetSetFdFlags for T
Source§fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
Query the “status” flags for the
self file descriptor.Source§fn new_set_fd_flags(&self, fd_flags: FdFlags) -> Result<SetFdFlags<T>, Error>where
T: AsFilelike,
fn new_set_fd_flags(&self, fd_flags: FdFlags) -> Result<SetFdFlags<T>, Error>where
T: AsFilelike,
Source§fn set_fd_flags(&mut self, set_fd_flags: SetFdFlags<T>) -> Result<(), Error>where
T: AsFilelike,
fn set_fd_flags(&mut self, set_fd_flags: SetFdFlags<T>) -> Result<(), Error>where
T: AsFilelike,
Set the “status” flags for the
self file descriptor. Read moreSource§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