pub struct Relationship {
pub name: Option<String>,
pub from_table: String,
pub from_column: String,
pub to_table: String,
pub to_column: String,
pub is_active: bool,
}Expand description
A relationship between a column of one table and a column of another.
Fields§
§name: Option<String>TMDL relationship names are GUIDs; kept for diagnostics only.
from_table: StringTable on the “from” (typically many) side.
from_column: StringKey column in from_table.
to_table: StringTable on the “to” (typically one) side.
to_column: StringKey column in to_table.
is_active: boolActive relationships keep both key columns alive while either endpoint
table is reachable; inactive ones are live only when a live DAX
reference (USERELATIONSHIP) activates them — otherwise the
relationship and its key columns are all findings.
Trait Implementations§
Source§impl Clone for Relationship
impl Clone for Relationship
Source§fn clone(&self) -> Relationship
fn clone(&self) -> Relationship
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 Relationship
impl Debug for Relationship
Source§impl Default for Relationship
impl Default for Relationship
impl Eq for Relationship
Source§impl PartialEq for Relationship
impl PartialEq for Relationship
impl StructuralPartialEq for Relationship
Auto Trait Implementations§
impl Freeze for Relationship
impl RefUnwindSafe for Relationship
impl Send for Relationship
impl Sync for Relationship
impl Unpin for Relationship
impl UnsafeUnpin for Relationship
impl UnwindSafe for Relationship
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.