#[non_exhaustive]pub struct Status {
pub prjname: String,
pub local_root: PathBuf,
pub checkout_hash: String,
pub checkout_ts: String,
pub tags: HashSet<String>,
pub uncommitted: bool,
pub untracked: bool,
pub tagged: Option<String>,
}Expand description
Metadata returned to build script.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.prjname: StringSet to the repository project name.
local_root: PathBufSet to the path of the checkout root.
checkout_hash: StringSet to the last commit hash in the checkout.
checkout_ts: StringSet to the last commit timestamp in the checkout.
A set of tags for current checkout commit.
uncommitted: booltrue if there are uncommitted changes in the checkout. false
otherwise.
untracked: booltrue if there are untracked files in the checkout. false otherwise.
tagged: Option<String>Set to Some(_) if this is a tagged build, where the variant data is
the tag name that was matched.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Status
impl RefUnwindSafe for Status
impl Send for Status
impl Sync for Status
impl Unpin for Status
impl UnwindSafe for Status
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