pub struct NodeCardStamp {
pub source_revision: u64,
pub source_content_hash: String,
pub source_record_digest: String,
pub source_body_bytes: u64,
pub card_revision: u64,
pub authored_by: String,
pub authored_at: String,
pub text_bytes: u64,
}Expand description
What a stored card declares about itself, without its prose.
A read that may not show the text still owes the reader the provenance: which body version the card was authored from, which card revision it is, who wrote it and when. Separating the stamp from the text is what makes a stale or post-cut card structurally unable to leak its prose — there is no text field on this type to forget to clear.
Fields§
§source_revision: u64§source_content_hash: String§source_record_digest: String§source_body_bytes: u64§card_revision: u64§text_bytes: u64Byte length of the stored card text. Reported so a reader can see what a regeneration would buy without being shown the text itself.
Trait Implementations§
Source§impl Clone for NodeCardStamp
impl Clone for NodeCardStamp
Source§fn clone(&self) -> NodeCardStamp
fn clone(&self) -> NodeCardStamp
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 NodeCardStamp
impl Debug for NodeCardStamp
impl Eq for NodeCardStamp
Source§impl PartialEq for NodeCardStamp
impl PartialEq for NodeCardStamp
impl StructuralPartialEq for NodeCardStamp
Auto Trait Implementations§
impl Freeze for NodeCardStamp
impl RefUnwindSafe for NodeCardStamp
impl Send for NodeCardStamp
impl Sync for NodeCardStamp
impl Unpin for NodeCardStamp
impl UnsafeUnpin for NodeCardStamp
impl UnwindSafe for NodeCardStamp
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