pub struct SchemaParser { /* private fields */ }Expand description
Schema-driven parser that requires explicit schema context for all operations
Implementations§
Source§impl SchemaParser
impl SchemaParser
Sourcepub fn new(context: ParsingContext) -> Result<Self>
pub fn new(context: ParsingContext) -> Result<Self>
Create a new schema-driven parser
Sourcepub fn parse_partition_key(&self, data: &[u8]) -> Result<Vec<Value>>
pub fn parse_partition_key(&self, data: &[u8]) -> Result<Vec<Value>>
Parse a partition key using the schema’s partition key comparators
Sourcepub fn parse_clustering_keys(&self, data: &[u8]) -> Result<Vec<Value>>
pub fn parse_clustering_keys(&self, data: &[u8]) -> Result<Vec<Value>>
Parse clustering keys using the schema’s clustering key comparators
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SchemaParser
impl RefUnwindSafe for SchemaParser
impl Send for SchemaParser
impl Sync for SchemaParser
impl Unpin for SchemaParser
impl UnsafeUnpin for SchemaParser
impl UnwindSafe for SchemaParser
Blanket Implementations§
impl<T> Allocation for T
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