pub struct Entry {
pub id: EntryId,
pub fields: RawFields,
}Expand description
A stream entry: its id and its raw fields.
use legit_streams::{Entry, EntryId};
let entry = Entry::new(EntryId::new(1, 0), vec![(b"task_id".to_vec(), b"app_1".to_vec())]);
assert_eq!(entry.field("task_id"), Some(&b"app_1"[..]));
assert_eq!(entry.field("v"), None);Fields§
§id: EntryIdThe entry’s id.
fields: RawFieldsThe entry’s fields, in order.
Implementations§
Trait Implementations§
impl Eq for Entry
impl StructuralPartialEq for Entry
Auto Trait Implementations§
impl Forget for Entry
impl Freeze for Entry
impl Move for Entry
impl RefUnwindSafe for Entry
impl Send for Entrywhere
RawVecInner: Send,
impl Sync for Entrywhere
RawVecInner: Sync,
impl Unpin for Entry
impl UnsafeUnpin for Entry
impl UnwindSafe for Entrywhere
RawVecInner: UnwindSafe,
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