pub struct CanAddResult {
pub can_add: bool,
pub error: Option<String>,
}Expand description
Result of checking if a note can be added.
Fields§
§can_add: boolWhether the note can be added.
error: Option<String>Error message if the note cannot be added.
Trait Implementations§
Source§impl Clone for CanAddResult
impl Clone for CanAddResult
Source§fn clone(&self) -> CanAddResult
fn clone(&self) -> CanAddResult
Returns a duplicate of the value. Read more
1.0.0 · 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 CanAddResult
impl Debug for CanAddResult
Source§impl<'de> Deserialize<'de> for CanAddResult
impl<'de> Deserialize<'de> for CanAddResult
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<CanAddResult, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<CanAddResult, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for CanAddResult
impl RefUnwindSafe for CanAddResult
impl Send for CanAddResult
impl Sync for CanAddResult
impl Unpin for CanAddResult
impl UnwindSafe for CanAddResult
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