pub struct OpExample {
pub title: String,
pub input_cbor: CborBytes,
pub output_cbor: Option<CborBytes>,
pub notes: Option<String>,
}Expand description
Example input/output pairs for referencing operations.
Fields§
§title: StringHuman-readable title for the example.
input_cbor: CborBytesCanonical CBOR input payload.
output_cbor: Option<CborBytes>Optional example output payload.
notes: Option<String>Free-text notes for the example.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for OpExample
impl<'de> Deserialize<'de> for OpExample
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 OpExample
impl StructuralPartialEq for OpExample
Auto Trait Implementations§
impl Freeze for OpExample
impl RefUnwindSafe for OpExample
impl Send for OpExample
impl Sync for OpExample
impl Unpin for OpExample
impl UnwindSafe for OpExample
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.