pub struct FileCommit {
pub content: Option<Box<FileCommitContent>>,
pub commit: Box<FileCommitCommit>,
}
Expand description
FileCommit : File Commit
Fields§
§content: Option<Box<FileCommitContent>>
§commit: Box<FileCommitCommit>
Implementations§
Source§impl FileCommit
impl FileCommit
Sourcepub fn new(
content: Option<FileCommitContent>,
commit: FileCommitCommit,
) -> FileCommit
pub fn new( content: Option<FileCommitContent>, commit: FileCommitCommit, ) -> FileCommit
File Commit
Trait Implementations§
Source§impl Clone for FileCommit
impl Clone for FileCommit
Source§fn clone(&self) -> FileCommit
fn clone(&self) -> FileCommit
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 FileCommit
impl Debug for FileCommit
Source§impl Default for FileCommit
impl Default for FileCommit
Source§fn default() -> FileCommit
fn default() -> FileCommit
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for FileCommit
impl<'de> Deserialize<'de> for FileCommit
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 PartialEq for FileCommit
impl PartialEq for FileCommit
Source§impl Serialize for FileCommit
impl Serialize for FileCommit
impl StructuralPartialEq for FileCommit
Auto Trait Implementations§
impl Freeze for FileCommit
impl RefUnwindSafe for FileCommit
impl Send for FileCommit
impl Sync for FileCommit
impl Unpin for FileCommit
impl UnwindSafe for FileCommit
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