pub struct DoSpacesCdn { /* private fields */ }Expand description
DigitalOcean Spaces CDN adapter implementing PurgeApi.
Encapsulates the DO CDN purge API: DELETE /v2/cdn/endpoints/{id}/cache with
{"files": [...]} body, ≤50-file batching, and a 5-req/10s internal throttle.
Implementations§
Source§impl DoSpacesCdn
impl DoSpacesCdn
Sourcepub fn new(config: DoSpacesCdnConfig) -> Self
pub fn new(config: DoSpacesCdnConfig) -> Self
Construct from config. Builds a single reqwest::Client shared across all requests.
Trait Implementations§
Source§impl PurgeApi for DoSpacesCdn
impl PurgeApi for DoSpacesCdn
Auto Trait Implementations§
impl !Freeze for DoSpacesCdn
impl !RefUnwindSafe for DoSpacesCdn
impl !UnwindSafe for DoSpacesCdn
impl Send for DoSpacesCdn
impl Sync for DoSpacesCdn
impl Unpin for DoSpacesCdn
impl UnsafeUnpin for DoSpacesCdn
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