#[non_exhaustive]pub struct CommitMetadata {
pub author: Option<CommitAuthor>,
pub commit_message: String,
/* private fields */
}Expand description
Represents a Dataform Git commit.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.Required. The commit’s author.
commit_message: StringOptional. The commit’s message.
Implementations§
Source§impl CommitMetadata
impl CommitMetadata
pub fn new() -> Self
Sourcepub fn set_commit_message<T: Into<String>>(self, v: T) -> Self
pub fn set_commit_message<T: Into<String>>(self, v: T) -> Self
Sets the value of commit_message.
§Example
ⓘ
let x = CommitMetadata::new().set_commit_message("example");Trait Implementations§
Source§impl Clone for CommitMetadata
impl Clone for CommitMetadata
Source§fn clone(&self) -> CommitMetadata
fn clone(&self) -> CommitMetadata
Returns a duplicate 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 CommitMetadata
impl Debug for CommitMetadata
Source§impl Default for CommitMetadata
impl Default for CommitMetadata
Source§fn default() -> CommitMetadata
fn default() -> CommitMetadata
Returns the “default value” for a type. Read more
Source§impl Message for CommitMetadata
impl Message for CommitMetadata
Source§impl PartialEq for CommitMetadata
impl PartialEq for CommitMetadata
impl StructuralPartialEq for CommitMetadata
Auto Trait Implementations§
impl Freeze for CommitMetadata
impl RefUnwindSafe for CommitMetadata
impl Send for CommitMetadata
impl Sync for CommitMetadata
impl Unpin for CommitMetadata
impl UnwindSafe for CommitMetadata
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