pub struct FrameworkConfig {
pub database: DatabaseConfig,
pub cache: CacheConfig,
pub message_queue: MessageQueueConfig,
pub framework_name: Option<String>,
pub framework_version: Option<String>,
pub environment: Option<String>,
}Expand description
框架核心配置
Fields§
§database: DatabaseConfig数据库配置
cache: CacheConfig缓存配置
message_queue: MessageQueueConfig消息队列配置
framework_name: Option<String>框架名称
framework_version: Option<String>框架版本
environment: Option<String>环境名称
Trait Implementations§
Source§impl Debug for FrameworkConfig
impl Debug for FrameworkConfig
Source§impl Default for FrameworkConfig
impl Default for FrameworkConfig
Source§fn default() -> FrameworkConfig
fn default() -> FrameworkConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for FrameworkConfig
impl<'de> Deserialize<'de> for FrameworkConfig
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<FrameworkConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<FrameworkConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for FrameworkConfig
impl Serialize for FrameworkConfig
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for FrameworkConfig
impl RefUnwindSafe for FrameworkConfig
impl Send for FrameworkConfig
impl Sync for FrameworkConfig
impl Unpin for FrameworkConfig
impl UnsafeUnpin for FrameworkConfig
impl UnwindSafe for FrameworkConfig
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> 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> Message for T
impl<T> Message for T
Source§fn from_boxed(m: BoxedMessage) -> Result<Self, BoxedDowncastErr>
fn from_boxed(m: BoxedMessage) -> Result<Self, BoxedDowncastErr>
Convert a BoxedMessage to this concrete type
Source§fn box_message(self, pid: &ActorId) -> Result<BoxedMessage, BoxedDowncastErr>
fn box_message(self, pid: &ActorId) -> Result<BoxedMessage, BoxedDowncastErr>
Convert this message to a BoxedMessage