pub struct Profile {
pub profile_id: String,
pub body_alphabet: String,
pub body_length: usize,
pub checksum_alphabet: String,
pub checksum_length: usize,
pub case_sensitive: bool,
pub separator: String,
pub grouping: Vec<usize>,
pub aliases: Vec<(char, char)>,
pub permutation: Permutation,
pub profanity: Option<Profanity>,
}Expand description
A baseH profile. Construct one, pass it to crate::Baseh::new and keep
the resulting codec. Profiles are validated at construction per spec 2.2.
aliases is a list of (source, target) pairs rather than a map so that
duplicate sources (including duplicates that only collide after case
normalization) can be detected during validation.
Fields§
§profile_id: String§body_alphabet: String§body_length: usize§checksum_alphabet: String§checksum_length: usize§case_sensitive: bool§separator: String§grouping: Vec<usize>§aliases: Vec<(char, char)>§permutation: Permutation§profanity: Option<Profanity>Trait Implementations§
impl Eq for Profile
impl StructuralPartialEq for Profile
Auto Trait Implementations§
impl Freeze for Profile
impl RefUnwindSafe for Profile
impl Send for Profile
impl Sync for Profile
impl Unpin for Profile
impl UnsafeUnpin for Profile
impl UnwindSafe for Profile
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