pub enum ResultSpec {
None,
Json {
schema: Value,
},
Resource {
resource_kind: String,
},
Job,
}Expand description
Shape of a successful result. Schemas use JSON Schema so non-Rust callers do not need a parallel Tilo-only type system.
Variants§
Implementations§
Source§impl ResultSpec
impl ResultSpec
pub fn serialize<__S>(
__self: &ResultSpec,
__serializer: __S,
) -> Result<__S::Ok, __S::Error>where
__S: Serializer,
Source§impl<'de> ResultSpec
impl<'de> ResultSpec
pub fn deserialize<__D>(__deserializer: __D) -> Result<ResultSpec, __D::Error>where
__D: Deserializer<'de>,
Source§impl ResultSpec
impl ResultSpec
Trait Implementations§
Source§impl Clone for ResultSpec
impl Clone for ResultSpec
Source§impl Debug for ResultSpec
impl Debug for ResultSpec
Source§impl Default for ResultSpec
impl Default for ResultSpec
Source§impl<'de> Deserialize<'de> for ResultSpec
impl<'de> Deserialize<'de> for ResultSpec
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ResultSpec
Source§impl PartialEq for ResultSpec
impl PartialEq for ResultSpec
Source§impl Serialize for ResultSpec
impl Serialize for ResultSpec
impl StructuralPartialEq for ResultSpec
Auto Trait Implementations§
impl Forget for ResultSpec
impl Freeze for ResultSpec
impl Move for ResultSpec
impl RefUnwindSafe for ResultSpec
impl Send for ResultSpec
impl Sync for ResultSpec
impl Unpin for ResultSpec
impl UnsafeUnpin for ResultSpec
impl UnwindSafe for ResultSpec
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
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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