pub struct ObjectPath {
pub schema: Option<String>,
pub name: String,
pub otype: ObjectType,
}Expand description
Path of an object
Fields§
§schema: Option<String>§name: String§otype: ObjectTypeImplementations§
Source§impl ObjectPath
impl ObjectPath
Sourcepub fn new_table(schema: &str, name: &str) -> Self
pub fn new_table(schema: &str, name: &str) -> Self
Create ObjectPath of Table on schema with name
Sourcepub fn new_table_only(name: &str) -> Self
pub fn new_table_only(name: &str) -> Self
Create ObjectPath of Schema
Sourcepub fn new_sequence(schema: &str, name: &str) -> Self
pub fn new_sequence(schema: &str, name: &str) -> Self
Create ObjectPath of a Sequence
pub fn is_equal(&self, other: &ObjectPath) -> bool
Trait Implementations§
Source§impl Clone for ObjectPath
impl Clone for ObjectPath
Source§fn clone(&self) -> ObjectPath
fn clone(&self) -> ObjectPath
Returns a duplicate of the value. Read more
1.0.0 · 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 ObjectPath
impl Debug for ObjectPath
Source§impl<'de> Deserialize<'de> for ObjectPath
impl<'de> Deserialize<'de> for ObjectPath
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
Auto Trait Implementations§
impl Freeze for ObjectPath
impl RefUnwindSafe for ObjectPath
impl Send for ObjectPath
impl Sync for ObjectPath
impl Unpin for ObjectPath
impl UnwindSafe for ObjectPath
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