Struct cql3_parser::common::FQName
source · [−]pub struct FQName {
pub keyspace: Option<Identifier>,
pub name: Identifier,
}Expand description
a fully qualified name.
Fields
keyspace: Option<Identifier>name: IdentifierImplementations
sourceimpl 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
sourceimpl<'de> Deserialize<'de> for FQName
impl<'de> Deserialize<'de> for FQName
sourcefn 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 StructuralEq for FQName
impl StructuralPartialEq for FQName
Auto Trait Implementations
impl RefUnwindSafe for FQName
impl Send for FQName
impl Sync for FQName
impl Unpin for FQName
impl UnwindSafe for FQName
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more