Struct event_store_core::stream::Stream
source · pub struct Stream {
pub stream_id: u64,
pub stream_uuid: String,
pub stream_version: u64,
pub created_at: DateTime<Utc>,
pub deleted_at: Option<DateTime<Utc>>,
}
Expand description
A Stream
represents an Event
stream
Fields§
§stream_id: u64
§stream_uuid: String
The stream identifier which is unique
stream_version: u64
The current stream version number
created_at: DateTime<Utc>
The creation date of the stream
deleted_at: Option<DateTime<Utc>>
The deletion date of the stream
Implementations§
source§impl Stream
impl Stream
pub fn stream_uuid(&self) -> &str
pub const fn is_persisted(&self) -> bool
pub fn validates_stream_id(stream_id: &str) -> bool
Trait Implementations§
source§impl<'a, R: Row> FromRow<'a, R> for Streamwhere
&'a str: ColumnIndex<R>,
i64: Decode<'a, R::Database> + Type<R::Database>,
String: Decode<'a, R::Database> + Type<R::Database>,
DateTime<Utc>: Decode<'a, R::Database> + Type<R::Database>,
Option<DateTime<Utc>>: Decode<'a, R::Database> + Type<R::Database>,
impl<'a, R: Row> FromRow<'a, R> for Streamwhere &'a str: ColumnIndex<R>, i64: Decode<'a, R::Database> + Type<R::Database>, String: Decode<'a, R::Database> + Type<R::Database>, DateTime<Utc>: Decode<'a, R::Database> + Type<R::Database>, Option<DateTime<Utc>>: Decode<'a, R::Database> + Type<R::Database>,
source§impl PartialEq<Stream> for Stream
impl PartialEq<Stream> for Stream
impl StructuralPartialEq for Stream
Auto Trait Implementations§
impl RefUnwindSafe for Stream
impl Send for Stream
impl Sync for Stream
impl Unpin for Stream
impl UnwindSafe for Stream
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