Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/libninjacom/benchling-rs
benchling client, generated from the OpenAPI spec
https://github.com/libninjacom/benchling-rs
benchling openapi rust
Last synced: 6 days ago
JSON representation
benchling client, generated from the OpenAPI spec
- Host: GitHub
- URL: https://github.com/libninjacom/benchling-rs
- Owner: libninjacom
- License: mit
- Created: 2022-10-06T22:02:01.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2022-11-08T00:00:26.000Z (about 2 years ago)
- Last Synced: 2024-08-08T16:11:21.680Z (3 months ago)
- Topics: benchling, openapi, rust
- Language: Rust
- Homepage: https://docs.rs/benchling/
- Size: 369 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
Benchling client, generated from the OpenAPI spec.
# Usage
```rust
use benchling::BenchlingClient;
use benchling::model::*;
#[tokio::main]
async fn main() {
let client = BenchlingClient::from_env();
let response = client
.list_aa_sequences()
.page_size(1)
.next_token("your next token")
.sort("your sort")
.modified_at("your modified at")
.name("your name")
.name_includes("your name includes")
.amino_acids("your amino acids")
.folder_id("your folder id")
.mentioned_in("your mentioned in")
.project_id("your project id")
.registry_id("your registry id")
.schema_id("your schema id")
.schema_fields(SchemaFieldsQueryParam {})
.archive_reason("your archive reason")
.mentions("your mentions")
.ids("your ids")
.entity_registry_ids_any_of("your entity registry ids.any of")
.names_any_of("your names.any of")
.names_any_of_case_sensitive("your names.any of.case sensitive")
.creator_ids("your creator ids")
.author_ids_any_of("your author ids.any of")
.send()
.await
.unwrap();
println!("{:#?}", response);
}```
This example loads configuration from environment variables, specifically:
* `BENCHLING_BASIC_API_KEY_AUTH`
# Installation
Add this to your Cargo.toml:
```toml
[dependencies]
benchling = "0.1.0"
```# Documentation
* [API Documentation](https://docs.benchling.com)
* [Client Library Documentation](https://docs.rs/benchling)
You can see working examples of every API call in the `examples/` directory.
# Contributing
Contributions are welcome!
*Library created with [Libninja](https://www.libninja.com).*