#[non_exhaustive]pub struct PutFileOutputBuilder { /* private fields */ }
Expand description
A builder for PutFileOutput
.
Implementations§
source§impl PutFileOutputBuilder
impl PutFileOutputBuilder
sourcepub fn commit_id(self, input: impl Into<String>) -> Self
pub fn commit_id(self, input: impl Into<String>) -> Self
The full SHA ID of the commit that contains this file change.
This field is required.sourcepub fn set_commit_id(self, input: Option<String>) -> Self
pub fn set_commit_id(self, input: Option<String>) -> Self
The full SHA ID of the commit that contains this file change.
sourcepub fn get_commit_id(&self) -> &Option<String>
pub fn get_commit_id(&self) -> &Option<String>
The full SHA ID of the commit that contains this file change.
sourcepub fn blob_id(self, input: impl Into<String>) -> Self
pub fn blob_id(self, input: impl Into<String>) -> Self
The ID of the blob, which is its SHA-1 pointer.
This field is required.sourcepub fn set_blob_id(self, input: Option<String>) -> Self
pub fn set_blob_id(self, input: Option<String>) -> Self
The ID of the blob, which is its SHA-1 pointer.
sourcepub fn get_blob_id(&self) -> &Option<String>
pub fn get_blob_id(&self) -> &Option<String>
The ID of the blob, which is its SHA-1 pointer.
sourcepub fn tree_id(self, input: impl Into<String>) -> Self
pub fn tree_id(self, input: impl Into<String>) -> Self
The full SHA-1 pointer of the tree information for the commit that contains this file change.
This field is required.sourcepub fn set_tree_id(self, input: Option<String>) -> Self
pub fn set_tree_id(self, input: Option<String>) -> Self
The full SHA-1 pointer of the tree information for the commit that contains this file change.
sourcepub fn get_tree_id(&self) -> &Option<String>
pub fn get_tree_id(&self) -> &Option<String>
The full SHA-1 pointer of the tree information for the commit that contains this file change.
sourcepub fn build(self) -> Result<PutFileOutput, BuildError>
pub fn build(self) -> Result<PutFileOutput, BuildError>
Consumes the builder and constructs a PutFileOutput
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for PutFileOutputBuilder
impl Clone for PutFileOutputBuilder
source§fn clone(&self) -> PutFileOutputBuilder
fn clone(&self) -> PutFileOutputBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for PutFileOutputBuilder
impl Debug for PutFileOutputBuilder
source§impl Default for PutFileOutputBuilder
impl Default for PutFileOutputBuilder
source§fn default() -> PutFileOutputBuilder
fn default() -> PutFileOutputBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for PutFileOutputBuilder
impl PartialEq for PutFileOutputBuilder
source§fn eq(&self, other: &PutFileOutputBuilder) -> bool
fn eq(&self, other: &PutFileOutputBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for PutFileOutputBuilder
Auto Trait Implementations§
impl Freeze for PutFileOutputBuilder
impl RefUnwindSafe for PutFileOutputBuilder
impl Send for PutFileOutputBuilder
impl Sync for PutFileOutputBuilder
impl Unpin for PutFileOutputBuilder
impl UnwindSafe for PutFileOutputBuilder
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<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>
Converts
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>
Converts
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 moreCreates a shared type from an unshared type.