Struct eventstore_tcp::raw::client_messages::EventRecord
[−]
[src]
pub struct EventRecord<'a> {
pub event_stream_id: Cow<'a, str>,
pub event_number: i32,
pub event_id: Cow<'a, [u8]>,
pub event_type: Cow<'a, str>,
pub data_content_type: i32,
pub metadata_content_type: i32,
pub data: Cow<'a, [u8]>,
pub metadata: Option<Cow<'a, [u8]>>,
pub created: Option<i64>,
pub created_epoch: Option<i64>,
}Fields
event_stream_id: Cow<'a, str>
event_number: i32
event_id: Cow<'a, [u8]>
event_type: Cow<'a, str>
data_content_type: i32
metadata_content_type: i32
data: Cow<'a, [u8]>
metadata: Option<Cow<'a, [u8]>>
created: Option<i64>
created_epoch: Option<i64>
Methods
impl<'a> EventRecord<'a>[src]
fn from_reader(r: &mut BytesReader, bytes: &'a [u8]) -> Result<Self>
Trait Implementations
impl<'a> Debug for EventRecord<'a>[src]
impl<'a> Default for EventRecord<'a>[src]
fn default() -> EventRecord<'a>
Returns the "default value" for a type. Read more
impl<'a> PartialEq for EventRecord<'a>[src]
fn eq(&self, __arg_0: &EventRecord<'a>) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &EventRecord<'a>) -> bool
This method tests for !=.
impl<'a> Clone for EventRecord<'a>[src]
fn clone(&self) -> EventRecord<'a>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more
impl<'a> MessageWrite for EventRecord<'a>[src]
fn get_size(&self) -> usize
Computes necessary binary size of self once serialized in protobuf
fn write_message<W: Write>(&self, w: &mut Writer<W>) -> Result<()>
Writes Self into W writer
fn write_file<P>(&self, p: P) -> Result<(), Error> where P: AsRef<Path>
Writes self into a file