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: u64Additional field to version the data
times: Vec<(String, u64)>The lamport times of the other entities at which this version becomes effective
unix_time: u64The 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§
Auto Trait Implementations§
impl Freeze for VersionEntry
impl RefUnwindSafe for VersionEntry
impl Send for VersionEntry
impl Sync for VersionEntry
impl Unpin for VersionEntry
impl UnwindSafe for VersionEntry
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