Struct aws_sdk_codecommit::types::FileVersion
source · #[non_exhaustive]pub struct FileVersion {
pub commit: Option<Commit>,
pub blob_id: Option<String>,
pub path: Option<String>,
pub revision_children: Option<Vec<String>>,
}Expand description
Information about a version of a file.
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: Option<Commit>Returns information about a specific commit.
blob_id: Option<String>The blob ID of the object that represents the content of the file in this version.
path: Option<String>The name and path of the file at which this blob is indexed which contains the data for this version of the file. This value will vary between file versions if a file is renamed or if its path changes.
revision_children: Option<Vec<String>>An array of commit IDs that contain more recent versions of this file. If there are no additional versions of the file, this array will be empty.
Implementations§
source§impl FileVersion
impl FileVersion
sourcepub fn blob_id(&self) -> Option<&str>
pub fn blob_id(&self) -> Option<&str>
The blob ID of the object that represents the content of the file in this version.
sourcepub fn path(&self) -> Option<&str>
pub fn path(&self) -> Option<&str>
The name and path of the file at which this blob is indexed which contains the data for this version of the file. This value will vary between file versions if a file is renamed or if its path changes.
sourcepub fn revision_children(&self) -> &[String]
pub fn revision_children(&self) -> &[String]
An array of commit IDs that contain more recent versions of this file. If there are no additional versions of the file, this array will be empty.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .revision_children.is_none().
source§impl FileVersion
impl FileVersion
sourcepub fn builder() -> FileVersionBuilder
pub fn builder() -> FileVersionBuilder
Creates a new builder-style object to manufacture FileVersion.
Trait Implementations§
source§impl Clone for FileVersion
impl Clone for FileVersion
source§fn clone(&self) -> FileVersion
fn clone(&self) -> FileVersion
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for FileVersion
impl Debug for FileVersion
source§impl PartialEq for FileVersion
impl PartialEq for FileVersion
source§fn eq(&self, other: &FileVersion) -> bool
fn eq(&self, other: &FileVersion) -> bool
self and other values to be equal, and is used
by ==.