[−][src]Struct parody::storage::Config
Control how you store cached response in the filesystem
Fields
query_in_path: QueryInPath
Which queries should affect the final storage directory
root_dir: PathBuf
Where all the files stored
Parody never should escape the root directory when stores requests
Methods
impl Config
[src]
pub fn set_root_dir(&mut self, root_dir: PathBuf) -> &Self
[src]
pub fn with_root_dir(self, root_dir: PathBuf) -> Self
[src]
pub fn use_no_query_path(&mut self) -> &Self
[src]
Make query parameters not affect the response storage path
pub fn with_no_query_path(self) -> Self
[src]
pub fn use_all_query_path(&mut self) -> &Self
[src]
Make all query parameters modify the storage path
pub fn with_all_query_path(self) -> Self
[src]
pub fn use_query_path(&mut self, query: &str) -> &Self
[src]
Make query parameter be included in resulting storage path
pub fn with_query_path(self, query: &str) -> Self
[src]
pub fn is_query_in_path(&self, query: &str) -> bool
[src]
pub fn get_root_dir(&self) -> &Path
[src]
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> CloneAny for T where
T: Clone + Any,
T: Clone + Any,
fn clone_any(&self) -> Box<dyn CloneAny + 'static>
fn clone_any_send(&self) -> Box<dyn CloneAny + 'static + Send> where
T: Send,
T: Send,
fn clone_any_sync(&self) -> Box<dyn CloneAny + 'static + Sync> where
T: Sync,
T: Sync,
fn clone_any_send_sync(&self) -> Box<dyn CloneAny + 'static + Sync + Send> where
T: Send + Sync,
T: Send + Sync,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> PersistentInto<Arc<Mutex<T>>> for T
[src]
fn persistent_into(self) -> Arc<Mutex<T>>
[src]
impl<T> PersistentInto<Arc<RwLock<T>>> for T
[src]
fn persistent_into(self) -> Arc<RwLock<T>>
[src]
impl<T> PersistentInto<Arc<T>> for T
[src]
fn persistent_into(self) -> Arc<T>
[src]
impl<T> PersistentInto<T> for T
[src]
fn persistent_into(self) -> T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
U: TryFrom<T>,
impl<T> Typeable for T where
T: Any,
T: Any,
impl<T> UnsafeAny for T where
T: Any,
T: Any,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,