pub struct ViewResult {
pub inputs: String,
pub ran_at: String,
pub duration_ms: u64,
pub data: Option<ViewData>,
pub error: Option<String>,
}Expand description
A view’s last result.
Fields§
§inputs: StringThe digest of what it read.
ran_at: StringWhen it ran (RFC 3339).
duration_ms: u64How long.
data: Option<ViewData>Its data.
error: Option<String>Why there is no data, in words.
Trait Implementations§
Source§impl Clone for ViewResult
impl Clone for ViewResult
Source§impl Debug for ViewResult
impl Debug for ViewResult
Source§impl<'de> Deserialize<'de> for ViewResult
impl<'de> Deserialize<'de> for ViewResult
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 Eq for ViewResult
Source§impl JsonSchema for ViewResult
impl JsonSchema for ViewResult
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for ViewResult
impl PartialEq for ViewResult
Source§impl Serialize for ViewResult
impl Serialize for ViewResult
impl StructuralPartialEq for ViewResult
Auto Trait Implementations§
impl Forget for ViewResult
impl Freeze for ViewResult
impl Move for ViewResult
impl RefUnwindSafe for ViewResult
impl Send for ViewResult
impl Sync for ViewResult
impl Unpin for ViewResult
impl UnsafeUnpin for ViewResult
impl UnwindSafe for ViewResult
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