pub struct Exchange {
pub type_field: String,
pub origin: String,
pub version: String,
pub source_uuid: String,
pub timestamp: u128,
pub path: Vec<PathElement>,
pub message: Message,
}Fields
type_field: Stringorigin: Stringversion: Stringsource_uuid: Stringtimestamp: u128path: Vec<PathElement>message: MessageImplementations
sourceimpl Exchange
impl Exchange
pub fn new(
component: String,
timestamp: u128,
path: Vec<PathElement>,
message: Message
) -> Box<Exchange>
pub fn appropriate(&mut self, configuration: &Configuration, timestamp: u128)
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Exchange
impl<'de> Deserialize<'de> for Exchange
sourcefn 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
impl Eq for Exchange
impl Reception for Exchange
Auto Trait Implementations
impl RefUnwindSafe for Exchange
impl Send for Exchange
impl Sync for Exchange
impl Unpin for Exchange
impl UnwindSafe for Exchange
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more