pub struct Pruned {
pub first: u64,
pub first_ms: u64,
}Expand description
The start of the log after the checkpoint rule removed its oldest
chunks: the reply of POST /v1/log has the records from first
on (01M588N3R2VP12A8X4EASX0BJ4).
use riff_core::wire::{LogReply, Pruned};
let reply: LogReply = serde_json::from_str(
r#"{"records":[],"pruned":{"first":1918,"first_ms":5000}}"#,
).unwrap();
assert_eq!(reply.pruned, Some(Pruned { first: 1918, first_ms: 5000 }));Fields§
§first: u64The position of the oldest record that the log keeps.
first_ms: u64When the oldest record of a known kind that the log keeps was written, in milliseconds since the Unix epoch. A record before it can be gone.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Pruned
impl<'de> Deserialize<'de> for Pruned
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
Source§impl JsonSchema for Pruned
impl JsonSchema for Pruned
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreimpl Copy for Pruned
impl Eq for Pruned
impl StructuralPartialEq for Pruned
Auto Trait Implementations§
impl Freeze for Pruned
impl RefUnwindSafe for Pruned
impl Send for Pruned
impl Sync for Pruned
impl Unpin for Pruned
impl UnsafeUnpin for Pruned
impl UnwindSafe for Pruned
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.