pub struct Chunk {
pub sequence_number: u64,
pub bin_data: Option<Vec<u8>>,
pub text_data: Option<String>,
pub json_data: Option<Value>,
}Expand description
A set of updates to a SQL table or view.
The sequence_number field stores the offset of the chunk relative to the
start of the stream and can be used to implement reliable delivery.
The payload is stored in the bin_data, text_data, or json_data field
depending on the data format used.
Fields§
§sequence_number: u64§bin_data: Option<Vec<u8>>Base64 encoded binary payload, e.g., bincode.
text_data: Option<String>Text payload, e.g., CSV.
json_data: Option<Value>JSON payload.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Chunk
impl<'de> Deserialize<'de> for Chunk
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
Auto Trait Implementations§
impl Freeze for Chunk
impl RefUnwindSafe for Chunk
impl Send for Chunk
impl Sync for Chunk
impl Unpin for Chunk
impl UnwindSafe for Chunk
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