pub enum Answer {
Json(Value),
Surfaces(Box<SurfacesView>),
Optimize(Box<OptimizeView>),
Swap(Box<SwapReply>),
Tolerance(Box<ToleranceReport>),
Zoom(Box<ZoomView>),
ConfigTable(Box<ConfigTable>),
Analysis(Box<Typed>),
}Expand description
1 つの要求の答え(型の答えは箱に入れ、どの枝も小さく保つ)
Variants§
Json(Value)
形が method や解析ごとに違う結果(解析・レイアウト・一覧など)
Surfaces(Box<SurfacesView>)
surface(面を指定しないとき)
Optimize(Box<OptimizeView>)
optimize
Swap(Box<SwapReply>)
swap
Tolerance(Box<ToleranceReport>)
tolerance
Zoom(Box<ZoomView>)
zoom
ConfigTable(Box<ConfigTable>)
config_table
Analysis(Box<Typed>)
analyze の解析の結果(書き出さないとき)。同梱の解析は結果の型のまま、型を消した拡張は JSON
Implementations§
Trait Implementations§
impl StructuralPartialEq for Answer
Auto Trait Implementations§
impl !RefUnwindSafe for Answer
impl !UnwindSafe for Answer
impl Freeze for Answer
impl Send for Answer
impl Sync for Answer
impl Unpin for Answer
impl UnsafeUnpin for Answer
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,
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