pub struct ExtractedPhoneNumber {
pub raw: String,
pub normalized: Option<String>,
pub start: usize,
pub end: usize,
pub is_valid: bool,
}Expand description
Result of extracting a phone number from text
Fields§
§raw: StringThe phone number as it appeared in the text
normalized: Option<String>The normalized E.164 format if valid
start: usizeStart position in the original text (byte index)
end: usizeEnd position in the original text (byte index)
is_valid: boolWhether the extracted number is valid
Trait Implementations§
Source§impl Clone for ExtractedPhoneNumber
impl Clone for ExtractedPhoneNumber
Source§fn clone(&self) -> ExtractedPhoneNumber
fn clone(&self) -> ExtractedPhoneNumber
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ExtractedPhoneNumber
impl Debug for ExtractedPhoneNumber
Source§impl PartialEq for ExtractedPhoneNumber
impl PartialEq for ExtractedPhoneNumber
impl Eq for ExtractedPhoneNumber
impl StructuralPartialEq for ExtractedPhoneNumber
Auto Trait Implementations§
impl Freeze for ExtractedPhoneNumber
impl RefUnwindSafe for ExtractedPhoneNumber
impl Send for ExtractedPhoneNumber
impl Sync for ExtractedPhoneNumber
impl Unpin for ExtractedPhoneNumber
impl UnwindSafe for ExtractedPhoneNumber
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