pub struct Schema { /* private fields */ }Expand description
The type of a schema as defined in the Delta Sharing protocol.
A schema is a logical grouping of tables. A schema may contain multiple
tables. A schema is defined within the context of a Share.
Implementations§
Source§impl Schema
impl Schema
Sourcepub fn new(
share_name: impl Into<String>,
schema_name: impl Into<String>,
) -> Self
pub fn new( share_name: impl Into<String>, schema_name: impl Into<String>, ) -> Self
Create a new Schema with the given Share, name and id.
Returns the name of the share associated with self
§Example
use datafusion_delta_sharing::securable::{Share, Schema};
let schema = Schema::new("my-share", "my-schema");
assert_eq!(schema.share_name(), "my-share");Trait Implementations§
Source§impl<'de> Deserialize<'de> for Schema
impl<'de> Deserialize<'de> for Schema
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 Schema
impl StructuralPartialEq for Schema
Auto Trait Implementations§
impl Freeze for Schema
impl RefUnwindSafe for Schema
impl Send for Schema
impl Sync for Schema
impl Unpin for Schema
impl UnwindSafe for Schema
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
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
Compare self to
key and return true if they are equal.