pub struct SnapshotHeader {
pub snapshot_hash: String,
pub file_count: usize,
pub git_rev: Option<String>,
pub git_branch: Option<String>,
pub extra_headers: Vec<(String, String)>,
}Expand description
Parsed representation of the ;;-comment header block at the top of a
.gcl file.
Fields§
§snapshot_hash: String§file_count: usize§git_rev: Option<String>SHA-1 / SHA-256 revision captured from the source git repository at
build time. Informational only — not included in snapshot_hash.
git_branch: Option<String>Short branch name captured from the source git repository at build time.
Informational only — not included in snapshot_hash.
extra_headers: Vec<(String, String)>Unknown ;; key: value comments preserved for forward compatibility.
Trait Implementations§
Source§impl Clone for SnapshotHeader
impl Clone for SnapshotHeader
Source§fn clone(&self) -> SnapshotHeader
fn clone(&self) -> SnapshotHeader
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 SnapshotHeader
impl Debug for SnapshotHeader
Source§impl Default for SnapshotHeader
impl Default for SnapshotHeader
Source§fn default() -> SnapshotHeader
fn default() -> SnapshotHeader
Returns the “default value” for a type. Read more
Source§impl PartialEq for SnapshotHeader
impl PartialEq for SnapshotHeader
impl Eq for SnapshotHeader
impl StructuralPartialEq for SnapshotHeader
Auto Trait Implementations§
impl Freeze for SnapshotHeader
impl RefUnwindSafe for SnapshotHeader
impl Send for SnapshotHeader
impl Sync for SnapshotHeader
impl Unpin for SnapshotHeader
impl UnsafeUnpin for SnapshotHeader
impl UnwindSafe for SnapshotHeader
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