pub struct GitMetadata {
pub commit_message: Option<String>,
pub commit_ref: Option<String>,
pub commit_sha: Option<String>,
}Expand description
GitMetadata
JSON schema
{
"type": "object",
"properties": {
"commitMessage": {
"type": [
"string",
"null"
]
},
"commitRef": {
"type": [
"string",
"null"
]
},
"commitSha": {
"type": [
"string",
"null"
]
}
}
}Fields§
§commit_message: Option<String>§commit_ref: Option<String>§commit_sha: Option<String>Implementations§
Source§impl GitMetadata
impl GitMetadata
pub fn builder() -> GitMetadata
Trait Implementations§
Source§impl Clone for GitMetadata
impl Clone for GitMetadata
Source§fn clone(&self) -> GitMetadata
fn clone(&self) -> GitMetadata
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 GitMetadata
impl Debug for GitMetadata
Source§impl Default for GitMetadata
impl Default for GitMetadata
Source§impl<'de> Deserialize<'de> for GitMetadata
impl<'de> Deserialize<'de> for GitMetadata
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&GitMetadata> for GitMetadata
impl From<&GitMetadata> for GitMetadata
Source§fn from(value: &GitMetadata) -> Self
fn from(value: &GitMetadata) -> Self
Converts to this type from the input type.
Source§impl From<GitMetadata> for GitMetadata
impl From<GitMetadata> for GitMetadata
Source§fn from(value: GitMetadata) -> Self
fn from(value: GitMetadata) -> Self
Converts to this type from the input type.
Source§impl Serialize for GitMetadata
impl Serialize for GitMetadata
Source§impl TryFrom<GitMetadata> for GitMetadata
impl TryFrom<GitMetadata> for GitMetadata
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: GitMetadata) -> Result<Self, ConversionError>
fn try_from(value: GitMetadata) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for GitMetadata
impl RefUnwindSafe for GitMetadata
impl Send for GitMetadata
impl Sync for GitMetadata
impl Unpin for GitMetadata
impl UnsafeUnpin for GitMetadata
impl UnwindSafe for GitMetadata
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