pub struct AnchorFile {
pub schema: String,
pub version: u32,
pub lines: u64,
pub chain_tail_hex: String,
pub records_sha256_hex: String,
pub anchored_at_unix: u64,
pub mac_hex: String,
}Expand description
锚点文件(落盘形态)。MAC 由所有者密钥对 canonical_payload 计算。
Fields§
§schema: String§version: u32显式版本号(W-31 起加字段;缺省 = 1,序列化时省略——既有 v1 文件字节
不漂移,旧文件(无此字段)也照常解析)。v2(ed25519)文件显式落 "version": 2。
lines: u64§chain_tail_hex: String0x + 16 位十六进制(FNV 链尾)。
records_sha256_hex: String64 位十六进制(前缀内容 SHA-256)。
anchored_at_unix: u64§mac_hex: String64 位十六进制(HMAC-SHA256)。
Trait Implementations§
Source§impl Clone for AnchorFile
impl Clone for AnchorFile
Source§fn clone(&self) -> AnchorFile
fn clone(&self) -> AnchorFile
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 moreSource§impl Debug for AnchorFile
impl Debug for AnchorFile
Source§impl<'de> Deserialize<'de> for AnchorFile
impl<'de> Deserialize<'de> for AnchorFile
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
impl Eq for AnchorFile
Source§impl PartialEq for AnchorFile
impl PartialEq for AnchorFile
Source§impl Serialize for AnchorFile
impl Serialize for AnchorFile
impl StructuralPartialEq for AnchorFile
Auto Trait Implementations§
impl Freeze for AnchorFile
impl RefUnwindSafe for AnchorFile
impl Send for AnchorFile
impl Sync for AnchorFile
impl Unpin for AnchorFile
impl UnsafeUnpin for AnchorFile
impl UnwindSafe for AnchorFile
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