Function google_cloud_spanner::mutation::insert_struct[][src]

pub fn insert_struct<T>(table: T, to_struct: impl ToStruct) -> Mutation where
    T: Into<String>, 
Expand description

insert_struct returns a Mutation to insert a row into a table, specified by a Rust struct. If the row already exists, the write or transaction fails with codes.AlreadyExists.