pub enum IcrcIndexData {
Found(String),
Unavailable(String),
}Expand description
IcrcIndexData
ICRC-106 discovery outcome shared by sources and serialized reports.
Variants§
Found(String)
Index principal returned by the ledger.
Index discovery is unavailable; source families own transport-error policy.
Implementations§
Source§impl IcrcIndexData
impl IcrcIndexData
Sourcepub fn canister_id(&self) -> Option<&str>
pub fn canister_id(&self) -> Option<&str>
Borrow the discovered index principal when discovery succeeded.
Borrow the source’s explanation when discovery is unavailable.
Trait Implementations§
Source§impl Clone for IcrcIndexData
impl Clone for IcrcIndexData
Source§impl Debug for IcrcIndexData
impl Debug for IcrcIndexData
impl Eq for IcrcIndexData
Source§impl PartialEq for IcrcIndexData
impl PartialEq for IcrcIndexData
Source§impl Serialize for IcrcIndexData
impl Serialize for IcrcIndexData
impl StructuralPartialEq for IcrcIndexData
Auto Trait Implementations§
impl Freeze for IcrcIndexData
impl RefUnwindSafe for IcrcIndexData
impl Send for IcrcIndexData
impl Sync for IcrcIndexData
impl Unpin for IcrcIndexData
impl UnsafeUnpin for IcrcIndexData
impl UnwindSafe for IcrcIndexData
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