pub struct CachedEndpoint {
pub method: Method,
pub path: Path,
}
Expand description
List of the methods and paths for which caching is enabled
Fields§
§method: Method
HTTP Method
path: Path
Route path
Implementations§
Source§impl CachedEndpoint
impl CachedEndpoint
Sourcepub fn new(method: Method, path: Path) -> CachedEndpoint
pub fn new(method: Method, path: Path) -> CachedEndpoint
Create CachedEndpoint
Trait Implementations§
Source§impl Clone for CachedEndpoint
impl Clone for CachedEndpoint
Source§fn clone(&self) -> CachedEndpoint
fn clone(&self) -> CachedEndpoint
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for CachedEndpoint
impl Debug for CachedEndpoint
Source§impl<'de> Deserialize<'de> for CachedEndpoint
impl<'de> Deserialize<'de> for CachedEndpoint
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<CachedEndpoint, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<CachedEndpoint, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for CachedEndpoint
impl Hash for CachedEndpoint
Source§impl PartialEq for CachedEndpoint
impl PartialEq for CachedEndpoint
Source§impl Serialize for CachedEndpoint
impl Serialize for CachedEndpoint
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for CachedEndpoint
impl StructuralPartialEq for CachedEndpoint
Auto Trait Implementations§
impl Freeze for CachedEndpoint
impl RefUnwindSafe for CachedEndpoint
impl Send for CachedEndpoint
impl Sync for CachedEndpoint
impl Unpin for CachedEndpoint
impl UnwindSafe for CachedEndpoint
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