pub struct InvalidationMessage {
pub key: String,
pub source: Option<String>,
pub reason: Option<String>,
}Expand description
Cache invalidation message format
Sent via PostgreSQL NOTIFY when a cache entry is invalidated.
Fields§
§key: StringCache key to invalidate
source: Option<String>Source instance ID (for debugging/metrics)
reason: Option<String>Reason for invalidation (for debugging)
Implementations§
Trait Implementations§
Source§impl Clone for InvalidationMessage
impl Clone for InvalidationMessage
Source§fn clone(&self) -> InvalidationMessage
fn clone(&self) -> InvalidationMessage
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 InvalidationMessage
impl Debug for InvalidationMessage
Source§impl<'de> Deserialize<'de> for InvalidationMessage
impl<'de> Deserialize<'de> for InvalidationMessage
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 InvalidationMessage
impl RefUnwindSafe for InvalidationMessage
impl Send for InvalidationMessage
impl Sync for InvalidationMessage
impl Unpin for InvalidationMessage
impl UnwindSafe for InvalidationMessage
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