pub struct EncodedKeyBuilder { /* private fields */ }Expand description
A builder for constructing EncodedKey values using keycode encoding
This provides a fluent API for building composite keys with proper order-preserving encoding.
Implementations§
Source§impl EncodedKeyBuilder
impl EncodedKeyBuilder
Sourcepub fn with_capacity(capacity: usize) -> Self
pub fn with_capacity(capacity: usize) -> Self
Create a builder with pre-allocated capacity
Sourcepub fn build(self) -> EncodedKey
pub fn build(self) -> EncodedKey
Build the EncodedKey
Sourcepub fn serialize<T: Serialize>(self, value: &T) -> Self
pub fn serialize<T: Serialize>(self, value: &T) -> Self
Extend with a serializable value using keycode encoding
Sourcepub fn row_number(self, row_number: &RowNumber) -> Self
pub fn row_number(self, row_number: &RowNumber) -> Self
Extend with RowNumber value
Sourcepub fn identity_id(self, id: &IdentityId) -> Self
pub fn identity_id(self, id: &IdentityId) -> Self
Extend with IdentityId value
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EncodedKeyBuilder
impl RefUnwindSafe for EncodedKeyBuilder
impl Send for EncodedKeyBuilder
impl Sync for EncodedKeyBuilder
impl Unpin for EncodedKeyBuilder
impl UnwindSafe for EncodedKeyBuilder
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more