pub struct LogReply {
pub records: Vec<Record>,
pub pruned: Option<Pruned>,
}Expand description
The reply to LogQuery: each record of the repository
(Record::of_repository), in log order. A post has only its mark
(Record::for_audit, 01M3ZWRC3XBFN8FJDGE8XWZ5EA).
A reader skips a record of a kind that its build does not know, as
Line::parse does (01M43GSMZKCMET3DG07K538EDD). So riff audit
of one build reads the log of a later server.
use riff_core::wire::LogReply;
let reply: LogReply = serde_json::from_str(r#"{"records":[
{"position":1,"written_at_ms":1,"change":{"reacted":{"emoji":"+1"}}},
{"position":2,"written_at_ms":1,"change":{"member_invited":{"email":"ann@acme.io"}}}
]}"#).unwrap();
assert_eq!(reply.records.len(), 1);
assert_eq!(reply.records[0].envelope.position, 2);Fields§
§records: Vec<Record>§pruned: Option<Pruned>The records that the log no longer keeps: None when it keeps
each record from position 1 (01M588N3R2VP12A8X4EASX0BJ4).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for LogReply
impl<'de> Deserialize<'de> for LogReply
Source§fn 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 LogReply
impl StructuralPartialEq for LogReply
Auto Trait Implementations§
impl Freeze for LogReply
impl RefUnwindSafe for LogReply
impl Send for LogReply
impl Sync for LogReply
impl Unpin for LogReply
impl UnsafeUnpin for LogReply
impl UnwindSafe for LogReply
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.