pub enum ParsedDiffSet {
Changeset(DiffSet<ChangesetFormat, TableSchema<String>, String, Vec<u8>>),
Patchset(DiffSet<PatchsetFormat, TableSchema<String>, String, Vec<u8>>),
}Expand description
A parsed changeset or patchset.
This represents a frozen (immutable) diffset produced by the binary parser.
To modify it, convert it to a DiffSetBuilder using Into::into.
Variants§
Changeset(DiffSet<ChangesetFormat, TableSchema<String>, String, Vec<u8>>)
A parsed changeset.
Patchset(DiffSet<PatchsetFormat, TableSchema<String>, String, Vec<u8>>)
A parsed patchset.
Implementations§
Source§impl ParsedDiffSet
impl ParsedDiffSet
Sourcepub fn parse(data: &[u8]) -> Result<Self, ParseError>
pub fn parse(data: &[u8]) -> Result<Self, ParseError>
Sourcepub fn is_changeset(&self) -> bool
pub fn is_changeset(&self) -> bool
Returns true if this is a changeset.
Sourcepub fn is_patchset(&self) -> bool
pub fn is_patchset(&self) -> bool
Returns true if this is a patchset.
Sourcepub fn table_schemas(&self) -> Vec<&TableSchema<String>>
pub fn table_schemas(&self) -> Vec<&TableSchema<String>>
Returns the table schemas for all tables with non-empty operations.
Trait Implementations§
Source§impl Clone for ParsedDiffSet
impl Clone for ParsedDiffSet
Source§fn clone(&self) -> ParsedDiffSet
fn clone(&self) -> ParsedDiffSet
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 ParsedDiffSet
impl Debug for ParsedDiffSet
impl Eq for ParsedDiffSet
Source§impl From<ParsedDiffSet> for Vec<u8>
impl From<ParsedDiffSet> for Vec<u8>
Source§fn from(diffset: ParsedDiffSet) -> Self
fn from(diffset: ParsedDiffSet) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ParsedDiffSet
impl PartialEq for ParsedDiffSet
Auto Trait Implementations§
impl Freeze for ParsedDiffSet
impl RefUnwindSafe for ParsedDiffSet
impl Send for ParsedDiffSet
impl Sync for ParsedDiffSet
impl Unpin for ParsedDiffSet
impl UnsafeUnpin for ParsedDiffSet
impl UnwindSafe for ParsedDiffSet
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.