pub struct HtmxInfo {
pub is_htmx: bool,
pub is_boosted: bool,
pub target: Option<String>,
pub trigger: Option<String>,
pub current_url: Option<String>,
}Expand description
HTMX v2 protocol headers extracted once from an incoming HttpRequest.
Fields§
§is_htmx: bool§is_boosted: bool§target: Option<String>§trigger: Option<String>§current_url: Option<String>Implementations§
Source§impl HtmxInfo
impl HtmxInfo
pub fn from_request(req: &HttpRequest) -> Self
Sourcepub fn wants_main_partial(&self) -> bool
pub fn wants_main_partial(&self) -> bool
Returns true when the server should render only a target partial fragment rather than the full HTML document shell.
Trait Implementations§
impl Eq for HtmxInfo
impl StructuralPartialEq for HtmxInfo
Auto Trait Implementations§
impl Forget for HtmxInfo
impl Freeze for HtmxInfo
impl Move for HtmxInfo
impl RefUnwindSafe for HtmxInfo
impl Send for HtmxInfowhere
RawVecInner: Send,
impl Sync for HtmxInfowhere
RawVecInner: Sync,
impl Unpin for HtmxInfo
impl UnsafeUnpin for HtmxInfo
impl UnwindSafe for HtmxInfowhere
RawVecInner: UnwindSafe,
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