pub struct Build {Show 19 fields
pub id: String,
pub repo_user: String,
pub repo_name: String,
pub branch: String,
pub repo_is_public: bool,
pub git_commit: String,
pub package: String,
pub package_type: String,
pub system: Option<String>,
pub req_user: String,
pub status: String,
pub start_time: String,
pub end_time: String,
pub drv_path: Option<String>,
pub output_paths: Option<HashMap<String, String>>,
pub github_run_id: u64,
pub wants_incrementalism: bool,
pub eval_host: String,
pub uploaded_to_cache: bool,
}
Expand description
Individual build information
Fields§
§id: String
Unique build ID
repo_user: String
Repository owner/user
repo_name: String
Repository name
branch: String
Git branch name
repo_is_public: bool
Whether the repository is public
git_commit: String
Git commit hash
package: String
Package/derivation name
package_type: String
Type of package being built
system: Option<String>
Target system (e.g., “x86_64-linux”)
req_user: String
User who requested the build
status: String
Build status (“Success”, “Failed”, “Pending”, etc.)
start_time: String
Build start time
end_time: String
Build end time
drv_path: Option<String>
Nix derivation path
output_paths: Option<HashMap<String, String>>
Map of output names to store paths
github_run_id: u64
GitHub Actions run ID
wants_incrementalism: bool
Whether incremental builds are wanted
eval_host: String
Evaluation host
uploaded_to_cache: bool
Whether build artifacts were uploaded to cache
Implementations§
Source§impl Build
impl Build
Sourcepub fn status_enum(&self) -> BuildStatus
pub fn status_enum(&self) -> BuildStatus
Get the build status as a typed enum
Sourcepub fn is_successful(&self) -> bool
pub fn is_successful(&self) -> bool
Check if the build was successful
Sourcepub fn is_pending(&self) -> bool
pub fn is_pending(&self) -> bool
Check if the build is still running
Sourcepub fn status_with_emoji(&self) -> String
pub fn status_with_emoji(&self) -> String
Get a human-readable status with emoji
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Build
impl<'de> Deserialize<'de> for Build
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Build
impl RefUnwindSafe for Build
impl Send for Build
impl Sync for Build
impl Unpin for Build
impl UnwindSafe for Build
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