pub struct TableDescriptor {
pub catalog_id: String,
pub name: String,
pub schema_generation: u64,
pub fingerprint: String,
pub created_at: String,
pub updated_at: String,
pub columns: Vec<ColumnDescriptor>,
pub constraints: Vec<ConstraintDescriptor>,
pub indexes: Vec<IndexDescriptor>,
pub extensions: BTreeMap<String, Value>,
}Fields§
§catalog_id: String§name: String§schema_generation: u64§fingerprint: String§created_at: String§updated_at: String§columns: Vec<ColumnDescriptor>§constraints: Vec<ConstraintDescriptor>§indexes: Vec<IndexDescriptor>§extensions: BTreeMap<String, Value>Implementations§
Source§impl TableDescriptor
impl TableDescriptor
pub fn to_json(&self) -> Result<String, DescriptorError>
pub fn from_json(json: &str) -> Result<Self, DescriptorError>
pub fn form_descriptor(&self) -> TableFormDescriptor
Sourcepub fn computed_fingerprint(&self) -> Result<String, DescriptorError>
pub fn computed_fingerprint(&self) -> Result<String, DescriptorError>
Compute the schema fingerprint with the fingerprint field itself blank.
pub fn refresh_fingerprint(&mut self) -> Result<(), DescriptorError>
Trait Implementations§
Source§impl Clone for TableDescriptor
impl Clone for TableDescriptor
Source§fn clone(&self) -> TableDescriptor
fn clone(&self) -> TableDescriptor
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 TableDescriptor
impl Debug for TableDescriptor
Source§impl<'de> Deserialize<'de> for TableDescriptor
impl<'de> Deserialize<'de> for TableDescriptor
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
impl Eq for TableDescriptor
Source§impl PartialEq for TableDescriptor
impl PartialEq for TableDescriptor
Source§impl Serialize for TableDescriptor
impl Serialize for TableDescriptor
impl StructuralPartialEq for TableDescriptor
Auto Trait Implementations§
impl Freeze for TableDescriptor
impl RefUnwindSafe for TableDescriptor
impl Send for TableDescriptor
impl Sync for TableDescriptor
impl Unpin for TableDescriptor
impl UnsafeUnpin for TableDescriptor
impl UnwindSafe for TableDescriptor
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