pub struct HeaderBundle {
pub ts: String,
pub nonce: String,
pub body_hash: String,
pub proof: String,
pub context_id: Option<String>,
}Expand description
Extracted ASH headers, validated and trimmed.
All required headers are present and contain exactly one value with no control characters.
Fields§
§ts: StringUnix timestamp string (validated present, not yet parsed)
nonce: StringNonce string (validated present, not yet format-checked)
body_hash: StringBody hash hex string (validated present)
proof: StringProof hex string (validated present)
context_id: Option<String>Context ID (optional header)
Trait Implementations§
Source§impl Clone for HeaderBundle
impl Clone for HeaderBundle
Source§fn clone(&self) -> HeaderBundle
fn clone(&self) -> HeaderBundle
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 moreAuto Trait Implementations§
impl Freeze for HeaderBundle
impl RefUnwindSafe for HeaderBundle
impl Send for HeaderBundle
impl Sync for HeaderBundle
impl Unpin for HeaderBundle
impl UnsafeUnpin for HeaderBundle
impl UnwindSafe for HeaderBundle
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