Struct VersionEntry

Source
pub struct VersionEntry {
    pub version: u64,
    pub times: Vec<(String, u64)>,
    pub unix_time: u64,
    pub metadata: Option<Vec<(String, String)>>,
    pub name: Option<String>,
    pub email: Option<String>,
    pub login: Option<String>,
    pub avatar_url: Option<Url>,
    /* private fields */
}
Expand description

The stored JSON data in the legacy identity.

Git-bug currently stores each change to an identity, by creating the resulting “version” of it, and storing it. So to get the full history of an identity, you would need to calculate the changes in each “version” along the way.

Fields§

§version: u64

Additional field to version the data

§times: Vec<(String, u64)>

The lamport times of the other entities at which this version becomes effective

§unix_time: u64

The UNIX time stamp, at which this version was created.

§metadata: Option<Vec<(String, String)>>

A set of arbitrary keys and values to store metadata about a version or about an Identity in general.

§name: Option<String>

The name at this version

§email: Option<String>

As defined in git or from a bridge when importing the identity

§login: Option<String>

Sourced from a bridge when importing the identity

§avatar_url: Option<Url>

The avatar url at this version

Trait Implementations§

Source§

impl Debug for VersionEntry

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> ErasedDestructor for T
where T: 'static,