pub struct PurgeTagParams {
pub service_id: String,
pub surrogate_key: String,
pub fastly_soft_purge: Option<i32>,
}
Expand description
struct for passing parameters to the method purge_tag
Fields§
§service_id: String
Alphanumeric string identifying the service.
surrogate_key: String
Surrogate keys are used to efficiently purge content from cache. Instead of purging your entire site or individual URLs, you can tag related assets (like all images and descriptions associated with a single product) with surrogate keys, and these grouped URLs can be purged in a single request.
fastly_soft_purge: Option<i32>
If present, this header triggers the purge to be ‘soft’, which marks the affected object as stale rather than making it inaccessible. Typically set to "1" when used, but the value is not important.
Trait Implementations§
Source§impl Clone for PurgeTagParams
impl Clone for PurgeTagParams
Source§fn clone(&self) -> PurgeTagParams
fn clone(&self) -> PurgeTagParams
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 PurgeTagParams
impl Debug for PurgeTagParams
Source§impl Default for PurgeTagParams
impl Default for PurgeTagParams
Source§fn default() -> PurgeTagParams
fn default() -> PurgeTagParams
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PurgeTagParams
impl RefUnwindSafe for PurgeTagParams
impl Send for PurgeTagParams
impl Sync for PurgeTagParams
impl Unpin for PurgeTagParams
impl UnwindSafe for PurgeTagParams
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