pub struct True;Expand description
Zero-sized marker that (de)serializes as the JSON literal true.
Used to distinguish the ok: true / ok: false variants of
RegisterResult and ExecuteResult while keeping them as proper
Rust enums rather than structs with nullable fields.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for True
impl<'de> Deserialize<'de> for True
Source§fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl Copy for True
impl Eq for True
impl StructuralPartialEq for True
Auto Trait Implementations§
impl Freeze for True
impl RefUnwindSafe for True
impl Send for True
impl Sync for True
impl Unpin for True
impl UnsafeUnpin for True
impl UnwindSafe for True
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