Struct actix_htmx::HtmxDetails
source · pub struct HtmxDetails {
pub is_htmx: bool,
pub boosted: bool,
pub history_restore_request: bool,
/* private fields */
}Fields§
§is_htmx: bool§boosted: bool§history_restore_request: boolImplementations§
source§impl HtmxDetails
impl HtmxDetails
pub fn new(req: &ServiceRequest) -> HtmxDetails
pub fn current_url(&self) -> Option<String>
pub fn prompt(&self) -> Option<String>
pub fn target(&self) -> Option<String>
pub fn trigger(&self) -> Option<String>
pub fn trigger_name(&self) -> Option<String>
pub fn trigger_event( &self, name: String, message: String, trigger_type: TriggerType )
pub fn redirect(&self, path: String)
pub fn redirect_with_swap(&self, path: String)
pub fn refresh(&self)
pub fn push_url(&self, path: String)
pub fn replace_url(&self, path: String)
pub fn reswap(&self, swap_type: SwapType)
pub fn retarget(&self, selector: String)
pub fn reselect(&self, selector: String)
Trait Implementations§
source§impl Clone for HtmxDetails
impl Clone for HtmxDetails
source§fn clone(&self) -> HtmxDetails
fn clone(&self) -> HtmxDetails
Returns a copy 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 FromRequest for HtmxDetails
impl FromRequest for HtmxDetails
source§fn from_request(req: &HttpRequest, _: &mut Payload) -> Self::Future
fn from_request(req: &HttpRequest, _: &mut Payload) -> Self::Future
Create a
Self from request parts asynchronously.Auto Trait Implementations§
impl !RefUnwindSafe for HtmxDetails
impl !Send for HtmxDetails
impl !Sync for HtmxDetails
impl Unpin for HtmxDetails
impl !UnwindSafe for HtmxDetails
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