pub struct PhotonSweepBatchResult {
pub results: Vec<PhotonSweepResult>,
pub warnings: Vec<String>,
}Expand description
Result of a batch photon injection sweep over multiple x_inj values.
Contains one PhotonSweepResult per x_inj value.
Fields§
§results: Vec<PhotonSweepResult>§warnings: Vec<String>Aggregated diagnostic warnings across all batch workers.
Implementations§
Source§impl PhotonSweepBatchResult
impl PhotonSweepBatchResult
Sourcepub fn to_json(&self) -> String
pub fn to_json(&self) -> String
Serialize to a JSON object containing per-x_inj results and aggregated warnings.
Pre-warnings format was a bare JSON array. With warnings we wrap into
{"results":[...], "warnings":[...]}. Python wrappers tolerate both.
Trait Implementations§
Source§impl Clone for PhotonSweepBatchResult
impl Clone for PhotonSweepBatchResult
Source§fn clone(&self) -> PhotonSweepBatchResult
fn clone(&self) -> PhotonSweepBatchResult
Returns a copy 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 PhotonSweepBatchResult
impl Debug for PhotonSweepBatchResult
Auto Trait Implementations§
impl Freeze for PhotonSweepBatchResult
impl RefUnwindSafe for PhotonSweepBatchResult
impl Send for PhotonSweepBatchResult
impl Sync for PhotonSweepBatchResult
impl Unpin for PhotonSweepBatchResult
impl UnwindSafe for PhotonSweepBatchResult
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