#![allow(unused_imports)] use benchling::BenchlingClient; use benchling::model::*; use benchling::request::UpdateRnaSequenceRequired; #[tokio::main] async fn main() { let client = BenchlingClient::from_env(); let args = UpdateRnaSequenceRequired { is_circular: true, 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()) } ], bases: "your bases", folder_id: "your folder 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()) } } ], aliases: &["your aliases"], entity_registry_id: "your entity registry id", author_ids: &["your author ids"], fields: Fields {}, custom_fields: CustomFields {}, name: "your name", schema_id: "your schema id", annotations: vec![ RnaAnnotation { end : 1, start : 1, strand : 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()) }, type_ : "your type" .to_owned() } ], rna_sequence_id: "your rna sequence id", }; let response = client.update_rna_sequence(args).send().await.unwrap(); println!("{:#?}", response); }