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§
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