Struct aws_sdk_codecommit::operation::get_file::GetFileOutput
source · #[non_exhaustive]pub struct GetFileOutput {
pub commit_id: String,
pub blob_id: String,
pub file_path: String,
pub file_mode: FileModeTypeEnum,
pub file_size: i64,
pub file_content: Blob,
/* private fields */
}
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.commit_id: String
The full commit ID of the commit that contains the content returned by GetFile.
blob_id: String
The blob ID of the object that represents the file content.
file_path: String
The fully qualified path to the specified file. Returns the name and extension of the file.
file_mode: FileModeTypeEnum
The extrapolated file mode permissions of the blob. Valid values include strings such as EXECUTABLE and not numeric values.
The file mode permissions returned by this API are not the standard file mode permission values, such as 100644, but rather extrapolated values. See the supported return values.
file_size: i64
The size of the contents of the file, in bytes.
file_content: Blob
The base-64 encoded binary data object that represents the content of the file.
Implementations§
source§impl GetFileOutput
impl GetFileOutput
sourcepub fn commit_id(&self) -> &str
pub fn commit_id(&self) -> &str
The full commit ID of the commit that contains the content returned by GetFile.
sourcepub fn file_path(&self) -> &str
pub fn file_path(&self) -> &str
The fully qualified path to the specified file. Returns the name and extension of the file.
sourcepub fn file_mode(&self) -> &FileModeTypeEnum
pub fn file_mode(&self) -> &FileModeTypeEnum
The extrapolated file mode permissions of the blob. Valid values include strings such as EXECUTABLE and not numeric values.
The file mode permissions returned by this API are not the standard file mode permission values, such as 100644, but rather extrapolated values. See the supported return values.
sourcepub fn file_content(&self) -> &Blob
pub fn file_content(&self) -> &Blob
The base-64 encoded binary data object that represents the content of the file.
source§impl GetFileOutput
impl GetFileOutput
sourcepub fn builder() -> GetFileOutputBuilder
pub fn builder() -> GetFileOutputBuilder
Creates a new builder-style object to manufacture GetFileOutput
.
Trait Implementations§
source§impl Clone for GetFileOutput
impl Clone for GetFileOutput
source§fn clone(&self) -> GetFileOutput
fn clone(&self) -> GetFileOutput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for GetFileOutput
impl Debug for GetFileOutput
source§impl PartialEq for GetFileOutput
impl PartialEq for GetFileOutput
source§fn eq(&self, other: &GetFileOutput) -> bool
fn eq(&self, other: &GetFileOutput) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl RequestId for GetFileOutput
impl RequestId for GetFileOutput
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None
if the service could not be reached.impl StructuralPartialEq for GetFileOutput
Auto Trait Implementations§
impl Freeze for GetFileOutput
impl RefUnwindSafe for GetFileOutput
impl Send for GetFileOutput
impl Sync for GetFileOutput
impl Unpin for GetFileOutput
impl UnwindSafe for GetFileOutput
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> 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