pub struct SolveReport {
pub schema: String,
pub fair_metadata: FairMetadata,
pub problem: ProblemInfo,
pub solution: SolutionInfo,
pub statistics: StatisticsInfo,
pub iterations: Vec<IterRecord>,
pub linear_solver: Option<LinearSolverSummaryInfo>,
}Fields§
§schema: String§fair_metadata: FairMetadata§problem: ProblemInfo§solution: SolutionInfo§statistics: StatisticsInfo§iterations: Vec<IterRecord>§linear_solver: Option<LinearSolverSummaryInfo>Aggregate linear-solver post-mortem (factor counts, fill ratio,
extremal pivots, final inertia). Added in pounce#?? — older
reports loaded with #[serde(default)] = None.
Implementations§
Source§impl SolveReport
impl SolveReport
Sourcepub fn from_json_slice(bytes: &[u8]) -> Result<Self, Error>
pub fn from_json_slice(bytes: &[u8]) -> Result<Self, Error>
Parse a JSON report from bytes. Validates the schema tag first
(before full struct deserialization) so a mismatched version
surfaces as Error::SchemaMismatch rather than a confusing
“missing field” JSON error.
Sourcepub fn from_json_str(s: &str) -> Result<Self, Error>
pub fn from_json_str(s: &str) -> Result<Self, Error>
Parse a JSON report from a &str. Convenience wrapper.
Trait Implementations§
Source§impl Clone for SolveReport
impl Clone for SolveReport
Source§fn clone(&self) -> SolveReport
fn clone(&self) -> SolveReport
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SolveReport
impl Debug for SolveReport
Source§impl<'de> Deserialize<'de> for SolveReport
impl<'de> Deserialize<'de> for SolveReport
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 SolveReport
impl RefUnwindSafe for SolveReport
impl Send for SolveReport
impl Sync for SolveReport
impl Unpin for SolveReport
impl UnsafeUnpin for SolveReport
impl UnwindSafe for SolveReport
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