pub struct AddFile<'a> { /* private fields */ }Expand description
Upload a file for a mod.
Implementations§
Source§impl<'a> AddFile<'a>
impl<'a> AddFile<'a>
pub fn file<P: AsRef<Path>>(self, file: P) -> Self
pub fn file_with_name<P: AsRef<Path>>(self, file: P, filename: &str) -> Self
pub const fn active(self, active: bool) -> Self
pub const fn changelog(self, changelog: &'a str) -> Self
pub const fn filehash(self, filehash: &'a str) -> Self
pub const fn metadata_blob(self, metadata: &'a str) -> Self
pub const fn version(self, version: &'a str) -> Self
Trait Implementations§
Source§impl IntoFuture for AddFile<'_>
impl IntoFuture for AddFile<'_>
Source§type Output = Result<Response<File>, Error>
type Output = Result<Response<File>, Error>
The output that the future will produce on completion.
Source§type IntoFuture = ResponseFuture<File>
type IntoFuture = ResponseFuture<File>
Which kind of future are we turning this into?
Source§fn into_future(self) -> Self::IntoFuture
fn into_future(self) -> Self::IntoFuture
Creates a future from a value. Read more
Auto Trait Implementations§
impl<'a> !Freeze for AddFile<'a>
impl<'a> !RefUnwindSafe for AddFile<'a>
impl<'a> Send for AddFile<'a>
impl<'a> Sync for AddFile<'a>
impl<'a> Unpin for AddFile<'a>
impl<'a> !UnwindSafe for AddFile<'a>
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
Source§impl<Builder, Data> DataFromRequest<Data> for Builderwhere
Builder: IntoFuture<IntoFuture = ResponseFuture<Data>> + Sealed,
Data: DeserializeOwned + Unpin,
impl<Builder, Data> DataFromRequest<Data> for Builderwhere
Builder: IntoFuture<IntoFuture = ResponseFuture<Data>> + Sealed,
Data: DeserializeOwned + Unpin,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§impl<T> ServiceExt for T
impl<T> ServiceExt for T
§fn compression(self) -> Compression<Self>where
Self: Sized,
fn compression(self) -> Compression<Self>where
Self: Sized,
Compresses response bodies. Read more
§fn decompression(self) -> Decompression<Self>where
Self: Sized,
fn decompression(self) -> Decompression<Self>where
Self: Sized,
Decompress response bodies. Read more
§fn trace_for_http(self) -> Trace<Self, SharedClassifier<ServerErrorsAsFailures>>where
Self: Sized,
fn trace_for_http(self) -> Trace<Self, SharedClassifier<ServerErrorsAsFailures>>where
Self: Sized,
High level tracing that classifies responses using HTTP status codes. Read more
§fn trace_for_grpc(self) -> Trace<Self, SharedClassifier<GrpcErrorsAsFailures>>where
Self: Sized,
fn trace_for_grpc(self) -> Trace<Self, SharedClassifier<GrpcErrorsAsFailures>>where
Self: Sized,
High level tracing that classifies responses using gRPC headers. Read more