GetOptions
Options for Sponsorkit::get_financial_contribution.
On this page
Options for Sponsorkit::get_financial_contribution.
use sponsorkit::GetOptions;
pub struct GetOptions {
pub cache_ttl: Option<Duration>,
}Fields#
cache_ttl#
pub cache_ttl: Option<Duration>Overrides the instance cache TTL for this call. Some(Duration::ZERO)
always asks the API (unless a Retry-After is in force).
Methods#
fresh#
pub fn fresh() -> SelfOptions that bypass the cache (cache_ttl: 0).
Returns: Self
Trait implementations#
impl Clone for GetOptionsimpl Debug for GetOptionsimpl Default for GetOptions