pub struct ConfigChangeEvent {
pub key: String,
pub old_value: Option<String>,
pub new_value: String,
}Expand description
Event fired when a configuration property changes. 当配置属性发生更改时触发的事件。
Equivalent to Spring Cloud’s EnvironmentChangeEvent.
等价于 Spring Cloud 的 EnvironmentChangeEvent。
Fields§
§key: StringThe key of the changed property / 已更改属性的键
old_value: Option<String>The old value (None if the property is new) / 旧值(如果属性是新的则为 None)
new_value: StringThe new value / 新值
Implementations§
Trait Implementations§
Source§impl Clone for ConfigChangeEvent
impl Clone for ConfigChangeEvent
Source§fn clone(&self) -> ConfigChangeEvent
fn clone(&self) -> ConfigChangeEvent
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 moreAuto Trait Implementations§
impl Freeze for ConfigChangeEvent
impl RefUnwindSafe for ConfigChangeEvent
impl Send for ConfigChangeEvent
impl Sync for ConfigChangeEvent
impl Unpin for ConfigChangeEvent
impl UnsafeUnpin for ConfigChangeEvent
impl UnwindSafe for ConfigChangeEvent
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