#[non_exhaustive]pub struct InspectReport {
pub hrp: String,
pub threshold: u8,
pub tag: Tag,
pub share_index: char,
pub prefix_byte: u8,
pub payload_bytes: Vec<u8>,
pub checksum_valid: bool,
}Expand description
Structural dump of a parsed ms1 string. #[non_exhaustive] per SPEC §10
— v0.2+ may add fields (share-index detail, threshold-layer hints,
derivation metadata).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.hrp: StringExpected “ms” in v0.1.
threshold: u8Expected 0 in v0.1.
tag: TagThe parsed type tag (id field).
Expected ‘s’ in v0.1.
prefix_byte: u80x00 in v0.1 (reserved); becomes type discriminator in v0.2+.
payload_bytes: Vec<u8>Payload bytes after the prefix byte.
checksum_valid: boolBCH verification result. True if the upstream codex32 parser accepted.
Trait Implementations§
Source§impl Clone for InspectReport
impl Clone for InspectReport
Source§fn clone(&self) -> InspectReport
fn clone(&self) -> InspectReport
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for InspectReport
impl RefUnwindSafe for InspectReport
impl Send for InspectReport
impl Sync for InspectReport
impl Unpin for InspectReport
impl UnsafeUnpin for InspectReport
impl UnwindSafe for InspectReport
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