Struct mwbot::upload::UploadRequest
source · pub struct UploadRequest { /* private fields */ }
Available on crate feature
upload
only.Expand description
Builder to construct a request for file uploads
Implementations§
source§impl UploadRequest
impl UploadRequest
Add tags to the edit and upload entry
sourcepub fn ignore_warnings(self, val: bool) -> Self
pub fn ignore_warnings(self, val: bool) -> Self
Ignore any upload warnings
sourcepub fn chunk_size(self, val: usize) -> Self
pub fn chunk_size(self, val: usize) -> Self
Set the chunk size, in bytes. By default it is
5MB (5_000_000
).
Auto Trait Implementations§
impl RefUnwindSafe for UploadRequest
impl Send for UploadRequest
impl Sync for UploadRequest
impl Unpin for UploadRequest
impl UnwindSafe for UploadRequest
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