#[non_exhaustive]pub struct SumCodeResult {
pub iscc: String,
pub datahash: String,
pub filesize: u64,
pub units: Option<Vec<String>>,
}Expand description
Result of gen_sum_code_v0.
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.iscc: StringComposite ISCC-CODE string (e.g., "ISCC:KAC...").
datahash: StringHex-encoded BLAKE3 multihash ("1e20...") of the file.
filesize: u64Byte length of the file.
units: Option<Vec<String>>Individual [Data-Code, Instance-Code] ISCC strings at the requested bit precision.
Present only when add_units is true.
Trait Implementations§
Source§impl Clone for SumCodeResult
impl Clone for SumCodeResult
Source§fn clone(&self) -> SumCodeResult
fn clone(&self) -> SumCodeResult
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 SumCodeResult
impl Debug for SumCodeResult
Source§impl PartialEq for SumCodeResult
impl PartialEq for SumCodeResult
impl Eq for SumCodeResult
impl StructuralPartialEq for SumCodeResult
Auto Trait Implementations§
impl Freeze for SumCodeResult
impl RefUnwindSafe for SumCodeResult
impl Send for SumCodeResult
impl Sync for SumCodeResult
impl Unpin for SumCodeResult
impl UnsafeUnpin for SumCodeResult
impl UnwindSafe for SumCodeResult
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