pub struct HashIdsBuilder { /* private fields */ }
Expand description
Builder for HashIds
Implementations§
Source§impl HashIdsBuilder
impl HashIdsBuilder
Sourcepub fn with_min_length(self, min_length: usize) -> Self
pub fn with_min_length(self, min_length: usize) -> Self
Set the minimum length for the encoded string
Sourcepub fn with_alphabet(self, alphabet: &str) -> HashIdsBuilderWithCustomAlphabet
pub fn with_alphabet(self, alphabet: &str) -> HashIdsBuilderWithCustomAlphabet
Set the custom alphabet to use for encoding
Trait Implementations§
Auto Trait Implementations§
impl Freeze for HashIdsBuilder
impl RefUnwindSafe for HashIdsBuilder
impl Send for HashIdsBuilder
impl Sync for HashIdsBuilder
impl Unpin for HashIdsBuilder
impl UnwindSafe for HashIdsBuilder
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