pub struct AnalysisResponse {
pub id: String,
pub is_during_search: bool,
pub turn_number: usize,
pub move_infos: Vec<MoveInfo>,
pub root_info: RootInfo,
pub ownership: Option<Vec<f64>>,
pub ownership_stdev: Option<Vec<f64>>,
pub policy: Option<Vec<f64>>,
pub human_policy: Option<Vec<f64>>,
}Expand description
The result of analyzing a position.
Fields§
§id: StringThe request ID.
is_during_search: boolWhether this is a partial analysis result. false indicates no more responses will be sent.
turn_number: usizeThe position index, where 0 is the position before the first move.
move_infos: Vec<MoveInfo>The list of moves the engine considered.
root_info: RootInfoInformation about the root position.
ownership: Option<Vec<f64>>The ownership prediction, in row-major order.
ownership_stdev: Option<Vec<f64>>The standard deviation of the ownership prediction, in row-major order.
policy: Option<Vec<f64>>The policy prediction, in row-major order with the pass move at the end.
human_policy: Option<Vec<f64>>The humanSL policy prediction, in row-major order with the pass move at the end.
Trait Implementations§
Source§impl Clone for AnalysisResponse
impl Clone for AnalysisResponse
Source§fn clone(&self) -> AnalysisResponse
fn clone(&self) -> AnalysisResponse
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 AnalysisResponse
impl Debug for AnalysisResponse
Source§impl<'de> Deserialize<'de> for AnalysisResponse
impl<'de> Deserialize<'de> for AnalysisResponse
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 AnalysisResponse
impl RefUnwindSafe for AnalysisResponse
impl Send for AnalysisResponse
impl Sync for AnalysisResponse
impl Unpin for AnalysisResponse
impl UnsafeUnpin for AnalysisResponse
impl UnwindSafe for AnalysisResponse
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