pub struct Validator { /* private fields */ }Implementations§
Source§impl Validator
impl Validator
pub fn new() -> Validator
pub fn is_valid_tweet(&self, s: &str) -> bool
pub fn is_valid_username(&self, s: &str) -> bool
pub fn is_valid_list(&self, s: &str) -> bool
pub fn is_valid_hashtag(&self, s: &str) -> bool
pub fn is_valid_url(&self, s: &str) -> bool
pub fn is_valid_url_without_protocol(&self, s: &str) -> bool
pub fn get_max_tweet_length(&self) -> i32
pub fn get_short_url_length(&self) -> i32
pub fn set_short_url_length(&mut self, short_url_length: i32)
pub fn get_short_url_length_https(&self) -> i32
pub fn set_short_url_length_https(&mut self, short_url_length_https: i32)
Auto Trait Implementations§
impl Freeze for Validator
impl RefUnwindSafe for Validator
impl Send for Validator
impl Sync for Validator
impl Unpin for Validator
impl UnsafeUnpin for Validator
impl UnwindSafe for Validator
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