pub fn into_published(self, origin: &str) -> PublishedEvent {
        let header = EventHeader {
            host_origin: origin.to_string(),
            timestamp: Utc::now().timestamp() as u64,
        };
        PublishedEvent {
            header,
            event: self,
        }
    }
/// Converts a control event into a published event with additional metadata
Converts a control event into a published event with additional metadata
Converts a control event into a published event with additional metadata
pub fn into_published(self, origin: &str) -> PublishedEvent {
        let header = EventHeader {
            host_origin: origin.to_string(),
            timestamp: Utc::now().timestamp() as u64,
        };
        PublishedEvent {
            header,
            event: self,
        }
    }
pub fn into_published ( self , origin : & str ) -> PublishedEvent { let header = EventHeader { host_origin : origin . to_string ( ) , timestamp : Utc :: now ( ) . timestamp ( ) as u64 , } ; PublishedEvent { header , event : self , } }
Converts a control event into a published event with additional metadata
Converts a control event into a published event with additional metadata
self
origin
&str
self
origin
&str