Struct JqueryEventName
pub struct JqueryEventName(/* private fields */);Expand description
Validated jQuery event name metadata.
Implementations§
§impl JqueryEventName
impl JqueryEventName
pub fn new(input: &str) -> Result<JqueryEventName, JqueryTextError>
pub fn new(input: &str) -> Result<JqueryEventName, JqueryTextError>
Creates jQuery event name metadata.
§Errors
Returns JqueryTextError when input is empty, contains whitespace, or has unsupported characters.
Trait Implementations§
§impl Clone for JqueryEventName
impl Clone for JqueryEventName
§fn clone(&self) -> JqueryEventName
fn clone(&self) -> JqueryEventName
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 more§impl Debug for JqueryEventName
impl Debug for JqueryEventName
§impl Display for JqueryEventName
impl Display for JqueryEventName
§impl FromStr for JqueryEventName
impl FromStr for JqueryEventName
§type Err = JqueryTextError
type Err = JqueryTextError
The associated error which can be returned from parsing.
§fn from_str(
input: &str,
) -> Result<JqueryEventName, <JqueryEventName as FromStr>::Err>
fn from_str( input: &str, ) -> Result<JqueryEventName, <JqueryEventName as FromStr>::Err>
Parses a string
s to return a value of this type. Read more§impl Hash for JqueryEventName
impl Hash for JqueryEventName
§impl Ord for JqueryEventName
impl Ord for JqueryEventName
§impl PartialEq for JqueryEventName
impl PartialEq for JqueryEventName
§impl PartialOrd for JqueryEventName
impl PartialOrd for JqueryEventName
§impl TryFrom<&str> for JqueryEventName
impl TryFrom<&str> for JqueryEventName
§type Error = JqueryTextError
type Error = JqueryTextError
The type returned in the event of a conversion error.
§fn try_from(
value: &str,
) -> Result<JqueryEventName, <JqueryEventName as TryFrom<&str>>::Error>
fn try_from( value: &str, ) -> Result<JqueryEventName, <JqueryEventName as TryFrom<&str>>::Error>
Performs the conversion.
impl Eq for JqueryEventName
impl StructuralPartialEq for JqueryEventName
Auto Trait Implementations§
impl Freeze for JqueryEventName
impl RefUnwindSafe for JqueryEventName
impl Send for JqueryEventName
impl Sync for JqueryEventName
impl Unpin for JqueryEventName
impl UnsafeUnpin for JqueryEventName
impl UnwindSafe for JqueryEventName
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