Struct hg_parser::ChangesetHeader
source · pub struct ChangesetHeader {
pub p1: Option<Revision>,
pub p2: Option<Revision>,
pub manifestid: NodeHash,
pub user: Vec<u8>,
pub time: DateTime,
pub extra: HashMap<Vec<u8>, Vec<u8>>,
pub files: Vec<Vec<u8>>,
pub comment: Vec<u8>,
}
Expand description
Changeset’s header.
Fields§
§p1: Option<Revision>
Parent 1.
p2: Option<Revision>
Parent 2.
manifestid: NodeHash
Manifest id hash.
user: Vec<u8>
User.
time: DateTime
Time.
extra: HashMap<Vec<u8>, Vec<u8>>
Extra properties (like b“branch“ shows current branch name, b“closed“ equal to b“1“ means branch is closed).
files: Vec<Vec<u8>>
Files paths.
comment: Vec<u8>
Comment to revision.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ChangesetHeader
impl RefUnwindSafe for ChangesetHeader
impl Send for ChangesetHeader
impl Sync for ChangesetHeader
impl Unpin for ChangesetHeader
impl UnwindSafe for ChangesetHeader
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
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more