pub struct UploadMiddleware {
pub max_attempts: u32,
pub decay_seconds: u64,
}Expand description
The throttle on the upload endpoint, written as throttle:{max_attempts},{decay_seconds}.
Fields§
§max_attempts: u32How many uploads one client may make in the decay window.
decay_seconds: u64The length of the decay window, in seconds.
Trait Implementations§
Source§impl Clone for UploadMiddleware
impl Clone for UploadMiddleware
impl Copy for UploadMiddleware
Source§impl Debug for UploadMiddleware
impl Debug for UploadMiddleware
Source§impl Default for UploadMiddleware
impl Default for UploadMiddleware
impl Eq for UploadMiddleware
Source§impl PartialEq for UploadMiddleware
impl PartialEq for UploadMiddleware
impl StructuralPartialEq for UploadMiddleware
Auto Trait Implementations§
impl Forget for UploadMiddleware
impl Freeze for UploadMiddleware
impl Move for UploadMiddleware
impl RefUnwindSafe for UploadMiddleware
impl Send for UploadMiddleware
impl Sync for UploadMiddleware
impl Unpin for UploadMiddleware
impl UnsafeUnpin for UploadMiddleware
impl UnwindSafe for UploadMiddleware
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.