pub struct CommitRef {
pub id: String,
pub short: String,
pub author: String,
pub date: String,
pub subject: String,
}Expand description
One commit, exactly as git names it. Nothing here is stored anywhere: the whole record is re-read from the object database on every call.
Fields§
§id: StringThe full object name.
short: StringThe abbreviated object name, as this repository abbreviates it.
The author, as the commit records them.
date: StringThe author date, ISO 8601 as the commit records it.
subject: StringThe subject line.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CommitRef
impl<'de> Deserialize<'de> for CommitRef
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
impl Eq for CommitRef
Source§impl JsonSchema for CommitRef
impl JsonSchema for CommitRef
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreimpl StructuralPartialEq for CommitRef
Auto Trait Implementations§
impl Freeze for CommitRef
impl RefUnwindSafe for CommitRef
impl Send for CommitRef
impl Sync for CommitRef
impl Unpin for CommitRef
impl UnsafeUnpin for CommitRef
impl UnwindSafe for CommitRef
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.