pub enum ConsentMessageResponse {
Ok(ConsentInfo),
Err(Icrc21Error),
}Expand description
ConsentMessageResponse Wrapper capturing the ok/error variants from an ICRC-21 consent request.
Variants§
Ok(ConsentInfo)
Err(Icrc21Error)
Trait Implementations§
Source§impl CandidType for ConsentMessageResponse
impl CandidType for ConsentMessageResponse
Source§impl<'de> Deserialize<'de> for ConsentMessageResponse
impl<'de> Deserialize<'de> for ConsentMessageResponse
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<Icrc21Error> for ConsentMessageResponse
impl From<Icrc21Error> for ConsentMessageResponse
Source§fn from(err: Icrc21Error) -> Self
fn from(err: Icrc21Error) -> Self
Converts to this type from the input type.
Source§impl From<Result<ConsentInfo, Icrc21Error>> for ConsentMessageResponse
impl From<Result<ConsentInfo, Icrc21Error>> for ConsentMessageResponse
Source§fn from(result: ConsentResult) -> Self
fn from(result: ConsentResult) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ConsentMessageResponse
impl RefUnwindSafe for ConsentMessageResponse
impl Send for ConsentMessageResponse
impl Sync for ConsentMessageResponse
impl Unpin for ConsentMessageResponse
impl UnwindSafe for ConsentMessageResponse
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