pub struct BankEntry {
pub id: u64,
pub tree: PatchTree,
pub origin: Origin,
pub name: Option<String>,
pub pinned: bool,
}Expand description
One bank entry of a saved session (renders and features are re-derived on import — trees are the source of truth).
Fields§
§id: u64The candidate’s stable id (preserved so lineage references stay meaningful).
tree: PatchTreeThe patch term.
origin: OriginProvenance.
name: Option<String>User-given name.
pinned: boolWhether the user pinned this patch against eviction.
#[serde(default)] is what makes this change safe for sessions saved
before pins existed: the record is one IndexedDB key with no schema
version, so compatibility has to be by construction. An old session
loads with nothing pinned, which is exactly what it meant.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for BankEntry
impl<'de> Deserialize<'de> for BankEntry
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
Auto Trait Implementations§
impl Freeze for BankEntry
impl RefUnwindSafe for BankEntry
impl Send for BankEntry
impl Sync for BankEntry
impl Unpin for BankEntry
impl UnsafeUnpin for BankEntry
impl UnwindSafe for BankEntry
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