pub enum ExampleExpectation {
Value(Value),
Error(ErrorCode),
Contains(String),
}Expand description
Expected outcome of a documented example.
Serialized explicitly because an internally tagged enum cannot represent newtype variants whose payload is not a map (booleans, arrays, strings).
Variants§
Trait Implementations§
Source§impl Clone for ExampleExpectation
impl Clone for ExampleExpectation
Source§fn clone(&self) -> ExampleExpectation
fn clone(&self) -> ExampleExpectation
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 ExampleExpectation
impl Debug for ExampleExpectation
Source§impl<'de> Deserialize<'de> for ExampleExpectation
impl<'de> Deserialize<'de> for ExampleExpectation
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
Source§impl PartialEq for ExampleExpectation
impl PartialEq for ExampleExpectation
Source§impl Serialize for ExampleExpectation
impl Serialize for ExampleExpectation
impl StructuralPartialEq for ExampleExpectation
Auto Trait Implementations§
impl Freeze for ExampleExpectation
impl RefUnwindSafe for ExampleExpectation
impl Send for ExampleExpectation
impl Sync for ExampleExpectation
impl Unpin for ExampleExpectation
impl UnsafeUnpin for ExampleExpectation
impl UnwindSafe for ExampleExpectation
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