/// this is the inverse of converting to &str
this is the inverse of converting to &str
this is the inverse of converting to &str
fn try_from(s: &str) -> Result<Self, Self::Error> {
        match s {
            "iox::column_type::tag" => Ok(Self::Tag),
            "iox::column_type::field::float" => Ok(Self::Field(InfluxFieldType::Float)),
            "iox::column_type::field::integer" => Ok(Self::Field(InfluxFieldType::Integer)),
            "iox::column_type::field::uinteger" => Ok(Self::Field(InfluxFieldType::UInteger)),
            "iox::column_type::field::string" => Ok(Self::Field(InfluxFieldType::String)),
            "iox::column_type::field::boolean" => Ok(Self::Field(InfluxFieldType::Boolean)),
            "iox::column_type::timestamp" => Ok(Self::Timestamp),
            _ => Err(format!("Unknown column type in metadata: {:?}", s)),
        }
    }
fn try_from ( s : & str ) -> Result < Self , Self :: Error > { match s { " " => Ok ( Self :: Tag ) , " " => Ok ( Self :: Field ( InfluxFieldType :: Float ) ) , " " => Ok ( Self :: Field ( InfluxFieldType :: Integer ) ) , " " => Ok ( Self :: Field ( InfluxFieldType :: UInteger ) ) , " " => Ok ( Self :: Field ( InfluxFieldType :: String ) ) , " " => Ok ( Self :: Field ( InfluxFieldType :: Boolean ) ) , " " => Ok ( Self :: Timestamp ) , _ => Err ( format ! ( " " s ) ) , } }
this is the inverse of converting to &str
this is the inverse of converting to &str
s
&str