pub struct FQName {
pub keyspace: Option<Identifier>,
pub name: Identifier,
}
Expand description
a fully qualified name.
Fields§
§keyspace: Option<Identifier>
§name: Identifier
Implementations§
Source§impl FQName
impl FQName
Sourcepub fn parse(txt: &str) -> FQName
pub fn parse(txt: &str) -> FQName
parses the FQName from a string. Breaks the string at the first dot (.
) and makes the left
string the keyspace and the second string the name. If no dot is present the entire string
is the name.
pub fn simple(name: &str) -> FQName
pub fn new(keyspace: &str, name: &str) -> FQName
Trait Implementations§
Source§impl<'de> Deserialize<'de> for FQName
impl<'de> Deserialize<'de> for FQName
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 FQName
impl StructuralPartialEq for FQName
Auto Trait Implementations§
impl Freeze for FQName
impl RefUnwindSafe for FQName
impl Send for FQName
impl Sync for FQName
impl Unpin for FQName
impl UnwindSafe for FQName
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more