pub struct UnitValue {
pub success: bool,
pub error: String,
}Fields§
§success: bool§error: StringImplementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for UnitValue
impl<'de> Deserialize<'de> for UnitValue
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
Source§impl From<SpellError> for UnitValue
impl From<SpellError> for UnitValue
Source§fn from(error: SpellError) -> Self
fn from(error: SpellError) -> Self
Converts to this type from the input type.
Source§impl SpellValueT for UnitValue
impl SpellValueT for UnitValue
fn is_success(&self) -> bool
fn take_error(self) -> String
Auto Trait Implementations§
impl Freeze for UnitValue
impl RefUnwindSafe for UnitValue
impl Send for UnitValue
impl Sync for UnitValue
impl Unpin for UnitValue
impl UnwindSafe for UnitValue
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