pub struct PutOpts {
pub content_disposition: Option<String>,
pub user_metadata: Vec<(String, String)>,
pub progress: Option<ProgressSink>,
}Expand description
Optional put_bytes / put_path knobs.
content_disposition and user_metadata are populated only by the
zip-archive push path, which supplies Content-Disposition and the
codepipeline-artifact-revision-summary user metadata. progress
is populated by the LFS agent so long uploads can drive the
git-lfs progress bar; left None for bundle / lock / HEAD writes
where progress reporting is not useful. Defaults to “no extras”,
which covers every other write.
Fields§
§content_disposition: Option<String>HTTP Content-Disposition header to associate with the object.
user_metadata: Vec<(String, String)>Backend user-defined metadata (key/value pairs). Backends should preserve insertion order; key case-folding is backend-defined.
progress: Option<ProgressSink>Optional progress sink invoked at chunk boundaries during the
upload. Backends that do single-shot uploads (small bodies)
emit one report(size) call after the transfer completes.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PutOpts
impl !RefUnwindSafe for PutOpts
impl Send for PutOpts
impl Sync for PutOpts
impl Unpin for PutOpts
impl UnsafeUnpin for PutOpts
impl !UnwindSafe for PutOpts
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more