pub struct HtmlAttr<'a> {
pub name: &'a str,
pub value: &'a str,
}Fields§
§name: &'a str§value: &'a strImplementations§
Source§impl<'a> HtmlAttr<'a>
impl<'a> HtmlAttr<'a>
pub const fn new(name: &'a str, value: &'a str) -> Self
pub const fn hx_get(value: &'a str) -> Self
pub const fn hx_post(value: &'a str) -> Self
pub const fn hx_put(value: &'a str) -> Self
pub const fn hx_patch(value: &'a str) -> Self
pub const fn hx_delete(value: &'a str) -> Self
pub const fn hx_target(value: &'a str) -> Self
pub const fn hx_swap(value: &'a str) -> Self
pub const fn hx_trigger(value: &'a str) -> Self
pub const fn hx_confirm(value: &'a str) -> Self
Trait Implementations§
Source§impl<'a> PartialEq for HtmlAttr<'a>
impl<'a> PartialEq for HtmlAttr<'a>
impl<'a> Copy for HtmlAttr<'a>
impl<'a> Eq for HtmlAttr<'a>
impl<'a> StructuralPartialEq for HtmlAttr<'a>
Auto Trait Implementations§
impl<'a> Freeze for HtmlAttr<'a>
impl<'a> RefUnwindSafe for HtmlAttr<'a>
impl<'a> Send for HtmlAttr<'a>
impl<'a> Sync for HtmlAttr<'a>
impl<'a> Unpin for HtmlAttr<'a>
impl<'a> UnsafeUnpin for HtmlAttr<'a>
impl<'a> UnwindSafe for HtmlAttr<'a>
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