pub struct SwapReply {
pub count: usize,
pub screened: Option<usize>,
pub done: Option<usize>,
pub failed: Option<usize>,
pub cancelled: Option<bool>,
pub seconds: Option<f64>,
pub slots: Vec<Vec<SwapCand>>,
pub results: Option<Vec<SwapResult>>,
}Expand description
差し替え探索の返事(serve の swap の結果。JSON はこの形で鍵の並びも同じ)。count_only なら count と slots だけ
Fields§
§count: usize組の数
screened: Option<usize>粗いふるいで残った組の数
done: Option<usize>評価した組・失敗した組の数
failed: Option<usize>§cancelled: Option<bool>途中で止めた
seconds: Option<f64>§slots: Vec<Vec<SwapCand>>所ごとの候補
results: Option<Vec<SwapResult>>評価関数の順に上位の組
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SwapReply
impl<'de> Deserialize<'de> for SwapReply
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 StructuralPartialEq for SwapReply
Auto Trait Implementations§
impl Freeze for SwapReply
impl RefUnwindSafe for SwapReply
impl Send for SwapReply
impl Sync for SwapReply
impl Unpin for SwapReply
impl UnsafeUnpin for SwapReply
impl UnwindSafe for SwapReply
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more