pub struct GpkgMetadataReference {
pub reference_scope: ReferenceScope,
pub table_name: Option<String>,
pub column_name: Option<String>,
pub row_id_value: Option<i64>,
pub timestamp: String,
pub md_file_id: i64,
pub md_parent_id: Option<i64>,
}Expand description
A row from the gpkg_metadata_reference table (OGC GeoPackage §10.8.5, Table 18).
Links a GpkgMetadata record (via md_file_id) to the database
object it describes. Nullable columns are represented as Option<_>.
Column layout:
| # | Column | Type | Nullable |
|---|---|---|---|
| 0 | reference_scope | TEXT | No |
| 1 | table_name | TEXT | Yes |
| 2 | column_name | TEXT | Yes |
| 3 | row_id_value | INTEGER | Yes |
| 4 | timestamp | DATETIME (TEXT) | No |
| 5 | md_file_id | INTEGER | No (FK) |
| 6 | md_parent_id | INTEGER | Yes (FK) |
Fields§
§reference_scope: ReferenceScopeScope of the reference (geopackage / table / column / row / row/col).
table_name: Option<String>User-data table name; None when reference_scope is "geopackage".
column_name: Option<String>Column name within table_name; None unless scope is "column" or
"row/col".
row_id_value: Option<i64>Row identifier within table_name; None unless scope is "row" or
"row/col".
timestamp: StringISO 8601 timestamp of when the reference was last updated.
md_file_id: i64Foreign key into gpkg_metadata.id — the referenced metadata record.
md_parent_id: Option<i64>Optional foreign key into gpkg_metadata.id — the parent metadata
record in a hierarchical metadata graph.
Trait Implementations§
Source§impl Clone for GpkgMetadataReference
impl Clone for GpkgMetadataReference
Source§fn clone(&self) -> GpkgMetadataReference
fn clone(&self) -> GpkgMetadataReference
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 GpkgMetadataReference
impl Debug for GpkgMetadataReference
Source§impl PartialEq for GpkgMetadataReference
impl PartialEq for GpkgMetadataReference
Source§fn eq(&self, other: &GpkgMetadataReference) -> bool
fn eq(&self, other: &GpkgMetadataReference) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for GpkgMetadataReference
Auto Trait Implementations§
impl Freeze for GpkgMetadataReference
impl RefUnwindSafe for GpkgMetadataReference
impl Send for GpkgMetadataReference
impl Sync for GpkgMetadataReference
impl Unpin for GpkgMetadataReference
impl UnsafeUnpin for GpkgMetadataReference
impl UnwindSafe for GpkgMetadataReference
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