Uuid, Timeuuid

Uuid and Timeuuid are represented as uuid::Uuid


#![allow(unused)]
fn main() {
extern crate scylla;
extern crate uuid;
use scylla::Session;
use std::error::Error;
async fn check_only_compiles(session: &Session) -> Result<(), Box<dyn Error>> {
use scylla::IntoTypedRows;
use uuid::Uuid;

// Insert some uuid/timeuuid into the table
let to_insert: Uuid = Uuid::parse_str("8e14e760-7fa8-11eb-bc66-000000000001")?;
session
    .query("INSERT INTO keyspace.table (a) VALUES(?)", (to_insert,))
    .await?;

// Read uuid/timeuuid from the table
if let Some(rows) = session.query("SELECT a FROM keyspace.table", &[]).await?.rows {
    for row in rows.into_typed::<(Uuid,)>() {
        let (uuid_value,): (Uuid,) = row?;
    }
}
Ok(())
}
}