Struct aws_sdk_codecommit::operation::get_folder::GetFolderOutput
source · #[non_exhaustive]pub struct GetFolderOutput {
pub commit_id: String,
pub folder_path: String,
pub tree_id: Option<String>,
pub sub_folders: Option<Vec<Folder>>,
pub files: Option<Vec<File>>,
pub symbolic_links: Option<Vec<SymbolicLink>>,
pub sub_modules: Option<Vec<SubModule>>,
/* 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 used as a reference for the returned version of the folder content.
folder_path: String
The fully qualified path of the folder whose contents are returned.
tree_id: Option<String>
The full SHA-1 pointer of the tree information for the commit that contains the folder.
sub_folders: Option<Vec<Folder>>
The list of folders that exist under the specified folder, if any.
files: Option<Vec<File>>
The list of files in the specified folder, if any.
symbolic_links: Option<Vec<SymbolicLink>>
The list of symbolic links to other files and folders in the specified folder, if any.
sub_modules: Option<Vec<SubModule>>
The list of submodules in the specified folder, if any.
Implementations§
source§impl GetFolderOutput
impl GetFolderOutput
sourcepub fn commit_id(&self) -> &str
pub fn commit_id(&self) -> &str
The full commit ID used as a reference for the returned version of the folder content.
sourcepub fn folder_path(&self) -> &str
pub fn folder_path(&self) -> &str
The fully qualified path of the folder whose contents are returned.
sourcepub fn tree_id(&self) -> Option<&str>
pub fn tree_id(&self) -> Option<&str>
The full SHA-1 pointer of the tree information for the commit that contains the folder.
sourcepub fn sub_folders(&self) -> &[Folder]
pub fn sub_folders(&self) -> &[Folder]
The list of folders that exist under the specified folder, if any.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .sub_folders.is_none()
.
sourcepub fn files(&self) -> &[File]
pub fn files(&self) -> &[File]
The list of files in the specified folder, if any.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .files.is_none()
.
sourcepub fn symbolic_links(&self) -> &[SymbolicLink]
pub fn symbolic_links(&self) -> &[SymbolicLink]
The list of symbolic links to other files and folders in the specified folder, if any.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .symbolic_links.is_none()
.
sourcepub fn sub_modules(&self) -> &[SubModule]
pub fn sub_modules(&self) -> &[SubModule]
The list of submodules in the specified folder, if any.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .sub_modules.is_none()
.
source§impl GetFolderOutput
impl GetFolderOutput
sourcepub fn builder() -> GetFolderOutputBuilder
pub fn builder() -> GetFolderOutputBuilder
Creates a new builder-style object to manufacture GetFolderOutput
.
Trait Implementations§
source§impl Clone for GetFolderOutput
impl Clone for GetFolderOutput
source§fn clone(&self) -> GetFolderOutput
fn clone(&self) -> GetFolderOutput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for GetFolderOutput
impl Debug for GetFolderOutput
source§impl PartialEq for GetFolderOutput
impl PartialEq for GetFolderOutput
source§fn eq(&self, other: &GetFolderOutput) -> bool
fn eq(&self, other: &GetFolderOutput) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl RequestId for GetFolderOutput
impl RequestId for GetFolderOutput
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None
if the service could not be reached.