#![allow(unused_imports)]
use benchling::BenchlingClient;
use benchling::model::*;
use benchling::request::UpdateDnaSequenceRequired;
#[tokio::main]
async fn main() {
let client = BenchlingClient::from_env();
let args = UpdateDnaSequenceRequired {
primers: vec![
Primer { oligo_id : Some("your oligo id".to_owned()), strand : Some(1), end :
Some(1), bases : Some("your bases".to_owned()), start : Some(1),
bind_position : Some(1), color : Some("your color".to_owned()),
overhang_length : Some(1), name : Some("your name".to_owned()) }
],
schema_id: "your schema id",
translations: vec![
Translation { start : 1, strand : 1, amino_acids : "your amino acids"
.to_owned(), genetic_code : "your genetic code".to_owned(), regions :
vec![::serde_json::json!({})], end : 1, sequence_feature_base :
SequenceFeatureBase { custom_fields : Some(vec![SequenceFeatureCustomField {
name : Some("your name".to_owned()), value : Some("your value".to_owned())
}]), color : Some("your color".to_owned()), name : Some("your name"
.to_owned()), notes : Some("your notes".to_owned()) } }
],
fields: Fields {},
dna_sequence_id: "your dna sequence id",
custom_fields: CustomFields {},
is_circular: true,
entity_registry_id: "your entity registry id",
annotations: vec![
DnaAnnotation { strand : 1, end : 1, type_ : "your type".to_owned(),
sequence_feature_base : SequenceFeatureBase { custom_fields :
Some(vec![SequenceFeatureCustomField { name : Some("your name".to_owned()),
value : Some("your value".to_owned()) }]), color : Some("your color"
.to_owned()), name : Some("your name".to_owned()), notes : Some("your notes"
.to_owned()) }, start : 1 }
],
author_ids: &["your author ids"],
aliases: &["your aliases"],
bases: "your bases",
name: "your name",
folder_id: "your folder id",
};
let response = client.update_dna_sequence(args).send().await.unwrap();
println!("{:#?}", response);
}