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: SocketAddr
Bind 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 copy 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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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<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> FutureExt for T
impl<T> FutureExt for T
source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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 moresource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request