pub struct FunctionWithCachePolicyOpts<'a> {
pub time_to_live: Option<&'a str>,
}Fields§
§time_to_live: Option<&'a str>The TTL for the cache policy, if applicable. Provided as a duration string, e.g. “5m”, “1h30s”.
Trait Implementations§
Source§impl<'a> Debug for FunctionWithCachePolicyOpts<'a>
impl<'a> Debug for FunctionWithCachePolicyOpts<'a>
Source§impl<'a> PartialEq for FunctionWithCachePolicyOpts<'a>
impl<'a> PartialEq for FunctionWithCachePolicyOpts<'a>
Source§fn eq(&self, other: &FunctionWithCachePolicyOpts<'a>) -> bool
fn eq(&self, other: &FunctionWithCachePolicyOpts<'a>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<'a> StructuralPartialEq for FunctionWithCachePolicyOpts<'a>
Auto Trait Implementations§
impl<'a> Freeze for FunctionWithCachePolicyOpts<'a>
impl<'a> RefUnwindSafe for FunctionWithCachePolicyOpts<'a>
impl<'a> Send for FunctionWithCachePolicyOpts<'a>
impl<'a> Sync for FunctionWithCachePolicyOpts<'a>
impl<'a> Unpin for FunctionWithCachePolicyOpts<'a>
impl<'a> UnwindSafe for FunctionWithCachePolicyOpts<'a>
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