pub struct RetainedSourceRecord {
pub id: String,
pub stream: String,
pub offset: u64,
pub byte_len: u64,
pub sha256: String,
pub data: Option<Vec<u8>>,
}Expand description
Source bytes retained for native recovery or replay.
Fields§
§id: StringStable record identifier.
stream: StringSource stream containing the record.
offset: u64First byte offset in the source stream.
byte_len: u64Number of source bytes.
sha256: StringLowercase hexadecimal SHA-256 of the source bytes.
data: Option<Vec<u8>>Retained bytes, when available.
Trait Implementations§
Source§impl Clone for RetainedSourceRecord
impl Clone for RetainedSourceRecord
Source§fn clone(&self) -> RetainedSourceRecord
fn clone(&self) -> RetainedSourceRecord
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RetainedSourceRecord
impl Debug for RetainedSourceRecord
Source§impl<'de> Deserialize<'de> for RetainedSourceRecord
impl<'de> Deserialize<'de> for RetainedSourceRecord
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 RetainedSourceRecord
Source§impl JsonSchema for RetainedSourceRecord
impl JsonSchema for RetainedSourceRecord
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 moreSource§impl PartialEq for RetainedSourceRecord
impl PartialEq for RetainedSourceRecord
Source§impl Serialize for RetainedSourceRecord
impl Serialize for RetainedSourceRecord
impl StructuralPartialEq for RetainedSourceRecord
Auto Trait Implementations§
impl Freeze for RetainedSourceRecord
impl RefUnwindSafe for RetainedSourceRecord
impl Send for RetainedSourceRecord
impl Sync for RetainedSourceRecord
impl Unpin for RetainedSourceRecord
impl UnsafeUnpin for RetainedSourceRecord
impl UnwindSafe for RetainedSourceRecord
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