pub struct Solver {
pub name: String,
pub version: String,
pub binary_sha256: String,
pub platform: String,
}Expand description
The identity of the solver an entry was produced by: the fields of
sail_key::SolverIdentity, with the binary hash as hex.
Fields§
§name: StringSolver family, for example z3.
version: StringThe version the solver reports.
binary_sha256: StringSHA-256 of the solver binary, as lowercase hex.
platform: StringPlatform class, for example macos-aarch64.
Implementations§
Source§impl Solver
impl Solver
Sourcepub fn summary(&self) -> String
pub fn summary(&self) -> String
The summary the disk tier records in crate::Meta::solver:
name version sha256 platform.
Sourcepub fn parse_summary(text: &str) -> Option<Self>
pub fn parse_summary(text: &str) -> Option<Self>
Parses a Solver::summary. Entries stored before the daemon
recorded identities have an empty summary, which gives None.
Sourcepub fn well_formed(&self) -> bool
pub fn well_formed(&self) -> bool
Whether every field is non-empty and safe as a path component, and the binary hash is 64 lowercase hex digits.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Solver
impl<'de> Deserialize<'de> for Solver
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
impl Eq for Solver
impl StructuralPartialEq for Solver
Auto Trait Implementations§
impl Freeze for Solver
impl RefUnwindSafe for Solver
impl Send for Solver
impl Sync for Solver
impl Unpin for Solver
impl UnsafeUnpin for Solver
impl UnwindSafe for Solver
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