pub mod feature; pub use feature::Feature; use gtk::{gio::Cancellable, glib::Priority}; /// Request data wrapper for `Client` pub struct Request { pub feature: Feature, /// Requests chain in order to process redirection rules pub referrer: Vec, } impl Request { // Constructors /// Build new `Self` pub fn build( query: &str, referrer: Option>, cancellable: Cancellable, priority: Priority, ) -> Self { Self { feature: Feature::build(query, cancellable, priority), referrer: referrer.unwrap_or_default(), } } }