pub struct ObjectName(pub Vec<Ident>);Expand description
A dotted name: a table, routine or column path (`p.d.t`, p.d.t, SAFE.DIVIDE).
Tuple Fields§
§0: Vec<Ident>Implementations§
Source§impl ObjectName
impl ObjectName
pub fn new<I: Into<Ident>>(parts: impl IntoIterator<Item = I>) -> Self
Sourcepub fn parts(&self) -> Vec<String>
pub fn parts(&self) -> Vec<String>
The name split into its logical parts: a backtick-quoted part holding dots (`p.d.t`) is
several parts.
Sourcepub fn table_name(&self) -> TableName
pub fn table_name(&self) -> TableName
The name as a TableName (project, dataset, table).
Trait Implementations§
Source§impl Clone for ObjectName
impl Clone for ObjectName
Source§impl Debug for ObjectName
impl Debug for ObjectName
Source§impl<'de> Deserialize<'de> for ObjectName
impl<'de> Deserialize<'de> for ObjectName
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 ObjectName
Source§impl Hash for ObjectName
impl Hash for ObjectName
Source§impl PartialEq for ObjectName
impl PartialEq for ObjectName
Source§impl Serialize for ObjectName
impl Serialize for ObjectName
impl StructuralPartialEq for ObjectName
Auto Trait Implementations§
impl Forget for ObjectName
impl Freeze for ObjectName
impl Move for ObjectName
impl RefUnwindSafe for ObjectName
impl Send for ObjectNamewhere
RawVecInner: Send,
impl Sync for ObjectNamewhere
RawVecInner: Sync,
impl Unpin for ObjectName
impl UnsafeUnpin for ObjectName
impl UnwindSafe for ObjectNamewhere
RawVecInner: UnwindSafe,
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.