pub struct ValidatedChangeset<B> { /* private fields */ }Expand description
Changeset bytes paired with the exact synced schema that validated their row identities. Construction is the one identity-validation boundary; apply only accepts this type, so callers cannot parse once for classification and then parse the same bytes again during mutation.
Implementations§
Source§impl<B: AsRef<[u8]>> ValidatedChangeset<B>
impl<B: AsRef<[u8]>> ValidatedChangeset<B>
pub fn new( bytes: B, schema: Arc<TableSchema>, ) -> Result<Self, ChangesetIdentityError>
pub fn bytes(&self) -> &[u8] ⓘ
pub fn schema(&self) -> &TableSchema
pub fn validate_subset<C: AsRef<[u8]>>( &self, bytes: C, ) -> Result<ValidatedChangeset<C>, ChangesetIdentityError>
Auto Trait Implementations§
impl<B> Freeze for ValidatedChangeset<B>where
B: Freeze,
impl<B> RefUnwindSafe for ValidatedChangeset<B>where
B: RefUnwindSafe,
impl<B> Send for ValidatedChangeset<B>where
B: Send,
impl<B> Sync for ValidatedChangeset<B>where
B: Sync,
impl<B> Unpin for ValidatedChangeset<B>where
B: Unpin,
impl<B> UnsafeUnpin for ValidatedChangeset<B>where
B: UnsafeUnpin,
impl<B> UnwindSafe for ValidatedChangeset<B>where
B: UnwindSafe,
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