pub enum ViewReply {
Accepted {
generation: u32,
revision: u32,
sequence: u32,
output: ViewOutput,
},
Failed {
generation: u32,
revision: u32,
sequence: u32,
message: String,
},
}Expand description
An approval or explicit current-request failure carrying the original identity.
§Examples
use adam_web_ui::graph::ViewReply;
let reply = ViewReply::Failed { generation: 1, revision: 1, sequence: 1,
message: "invalid viewport".into() };
assert!(serde_json::to_string(&reply)?.contains(r#""kind":"failed""#));Variants§
Accepted
Contains only fully evaluated model output.
Fields
§
output: ViewOutputThe approved view and model-owned gesture limits.
Failed
Reports invalid current geometry or a model propagation failure.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ViewReply
impl<'de> Deserialize<'de> for ViewReply
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 ViewReply
Auto Trait Implementations§
impl Freeze for ViewReply
impl RefUnwindSafe for ViewReply
impl Send for ViewReply
impl Sync for ViewReply
impl Unpin for ViewReply
impl UnsafeUnpin for ViewReply
impl UnwindSafe for ViewReply
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> DependencyElement for T
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<T> InitializeFromFunction<T> for T
impl<T> InitializeFromFunction<T> for T
§fn initialize_from_function(f: fn() -> T) -> T
fn initialize_from_function(f: fn() -> T) -> T
Create an instance of this type from an initialization function
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
§impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
§fn super_from(input: T) -> O
fn super_from(input: T) -> O
Convert from a type to another type.
§impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
§fn super_into(self) -> O
fn super_into(self) -> O
Convert from a type to another type.