pub struct SourceSchema {
pub table_name: String,
pub columns: OrderedMap<Column>,
pub primary_key: Vec<String>,
pub relationships: Vec<(String, Rc<SourceSchema>)>,
pub is_hidden: bool,
pub system: System,
pub compare_rows: Comparator,
pub sort: Option<Vec<OrderPart>>,
}Expand description
The schema of an operator’s output (SourceSchema in schema.ts).
Fields§
§table_name: String§columns: OrderedMap<Column>§primary_key: Vec<String>§relationships: Vec<(String, Rc<SourceSchema>)>Relationship schemas, in the order they were added.
system: System§compare_rows: Comparator§sort: Option<Vec<OrderPart>>None for an unordered input.
Implementations§
Source§impl SourceSchema
impl SourceSchema
pub fn relationship(&self, name: &str) -> Option<&Rc<SourceSchema>>
pub fn relationship_names(&self) -> Vec<&str>
Sourcepub fn adding(&self, name: &str, schema: Rc<SourceSchema>) -> SourceSchema
pub fn adding(&self, name: &str, schema: Rc<SourceSchema>) -> SourceSchema
This schema with schema added (or replaced) as relationship name.
Trait Implementations§
Source§impl Clone for SourceSchema
impl Clone for SourceSchema
Auto Trait Implementations§
impl !RefUnwindSafe for SourceSchema
impl !Send for SourceSchema
impl !Sync for SourceSchema
impl !UnwindSafe for SourceSchema
impl Forget for SourceSchema
impl Freeze for SourceSchema
impl Move for SourceSchema
impl Unpin for SourceSchema
impl UnsafeUnpin for SourceSchema
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