pub struct CachingConfig {
pub caching_keys: Option<Vec<String>>,
pub ttl: Option<i64>,
}
Expand description
The caching configuration for a resolver that has caching enabled.
Fields§
§caching_keys: Option<Vec<String>>
The caching keys for a resolver that has caching enabled.
Valid values are entries from the $context.arguments
, $context.source
, and $context.identity
maps.
ttl: Option<i64>
The TTL in seconds for a resolver that has caching enabled.
Valid values are between 1 and 3600 seconds.
Trait Implementations§
Source§impl Clone for CachingConfig
impl Clone for CachingConfig
Source§fn clone(&self) -> CachingConfig
fn clone(&self) -> CachingConfig
Returns a duplicate 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 Debug for CachingConfig
impl Debug for CachingConfig
Source§impl Default for CachingConfig
impl Default for CachingConfig
Source§fn default() -> CachingConfig
fn default() -> CachingConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CachingConfig
impl<'de> Deserialize<'de> for CachingConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for CachingConfig
impl PartialEq for CachingConfig
Source§impl Serialize for CachingConfig
impl Serialize for CachingConfig
impl StructuralPartialEq for CachingConfig
Auto Trait Implementations§
impl Freeze for CachingConfig
impl RefUnwindSafe for CachingConfig
impl Send for CachingConfig
impl Sync for CachingConfig
impl Unpin for CachingConfig
impl UnwindSafe for CachingConfig
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