pub struct FunctionWithCachePolicyOptsBuilder<'a> { /* private fields */ }Expand description
Builder for FunctionWithCachePolicyOpts.
Implementations§
Source§impl<'a> FunctionWithCachePolicyOptsBuilder<'a>
impl<'a> FunctionWithCachePolicyOptsBuilder<'a>
Sourcepub fn time_to_live<VALUE: Into<&'a str>>(&mut self, value: VALUE) -> &mut Self
pub fn time_to_live<VALUE: Into<&'a str>>(&mut self, value: VALUE) -> &mut Self
The TTL for the cache policy, if applicable. Provided as a duration string, e.g. “5m”, “1h30s”.
Sourcepub fn build(
&self,
) -> Result<FunctionWithCachePolicyOpts<'a>, FunctionWithCachePolicyOptsBuilderError>
pub fn build( &self, ) -> Result<FunctionWithCachePolicyOpts<'a>, FunctionWithCachePolicyOptsBuilderError>
Trait Implementations§
Source§impl<'a> Clone for FunctionWithCachePolicyOptsBuilder<'a>
impl<'a> Clone for FunctionWithCachePolicyOptsBuilder<'a>
Source§fn clone(&self) -> FunctionWithCachePolicyOptsBuilder<'a>
fn clone(&self) -> FunctionWithCachePolicyOptsBuilder<'a>
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 moreAuto Trait Implementations§
impl<'a> Freeze for FunctionWithCachePolicyOptsBuilder<'a>
impl<'a> RefUnwindSafe for FunctionWithCachePolicyOptsBuilder<'a>
impl<'a> Send for FunctionWithCachePolicyOptsBuilder<'a>
impl<'a> Sync for FunctionWithCachePolicyOptsBuilder<'a>
impl<'a> Unpin for FunctionWithCachePolicyOptsBuilder<'a>
impl<'a> UnwindSafe for FunctionWithCachePolicyOptsBuilder<'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