pub struct VersionInfo {
pub saved_by: Option<Generation>,
pub created_by: Option<Generation>,
pub resaved: bool,
pub format_level: Option<u32>,
pub locking_features: Vec<String>,
pub needs_format_level: Option<u32>,
pub unknown_labels: Vec<String>,
pub alternative_lock_columns: bool,
pub sqlite_version: Option<u32>,
}Expand description
What a file tells about the CSP versions that saved it.
Fields§
§saved_by: Option<Generation>Newest generation whose labels are registered (the last saver, at least).
created_by: Option<Generation>Generation of the first block of ParamScheme rows (the creator).
None when that block has no marker, or when a CSP that rewrites the
registry saved the file again (resaved and the creator is lost).
resaved: boolWhether the file was made by an older CSP and saved again by a newer one: rows appended after the first block, or a label the saving generation no longer registers.
format_level: Option<u32>Highest N of the registered Layer.Has1_0_N columns (the format level
of the saving CSP), if any.
locking_features: Vec<String>Columns with lock type 4 and no link whose value is set in some row: a CSP that does not know such a column locks the scope its registration names (the canvas for scope 2), or the layer when the alternative lock is 1 (checked in CSP 5.1.4).
needs_format_level: Option<u32>Highest N among set Has1_0_N columns: CSP needs format level N or
newer to edit the file without a lock.
unknown_labels: Vec<String>Registered labels this library does not know (a newer CSP).
alternative_lock_columns: boolWhether ParamScheme has the AlternativeLock* columns (since 2.x).
sqlite_version: Option<u32>SQLITE_VERSION_NUMBER of the library that last wrote the database.
Implementations§
Source§impl VersionInfo
impl VersionInfo
Trait Implementations§
Source§impl Clone for VersionInfo
impl Clone for VersionInfo
Source§impl Debug for VersionInfo
impl Debug for VersionInfo
impl Eq for VersionInfo
Source§impl PartialEq for VersionInfo
impl PartialEq for VersionInfo
Source§impl Serialize for VersionInfo
impl Serialize for VersionInfo
impl StructuralPartialEq for VersionInfo
Auto Trait Implementations§
impl Freeze for VersionInfo
impl RefUnwindSafe for VersionInfo
impl Send for VersionInfo
impl Sync for VersionInfo
impl Unpin for VersionInfo
impl UnsafeUnpin for VersionInfo
impl UnwindSafe for VersionInfo
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.