docs.rs failed to build nautobot-0.4.0
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build:
nautobot-0.3.1
nautobot
ergonomic rust client for the nautobot rest api.
this crate provides a high-level, typed interface for interacting with nautobot, built on top of generated openapi bindings.
install
add this to your Cargo.toml:
[]
= "0.3"
= { = "1.0", = ["full"] }
optional tracing instrumentation:
[]
= { = "0.3", = ["tracing"] }
usage
basic example
use ;
async
ergonomic helpers
the client includes helper methods for common operations that go beyond basic crud:
// ipam: find available ips in a prefix
let available_ips = client.ipam.prefix_available_ips.await?;
// dcim: trace a cable path from an interface
let trace = client.dcim.interface_trace.await?;
// extras: run a job
use JobInputRequest;
let response = client.extras.job_run.await?;
features
- typed apis: specific helpers for dcim, ipam, extras, virtualization, and more.
- pagination: built-in support for handling paginated responses.
- async: built on
tokioandreqwestfor non-blocking i/o. - openapi: leverages
nautobot-openapifor comprehensive schema coverage. - tracing: optional
tracingfeature for request lifecycle instrumentation. - hooks:
HttpHookstrait for observing and mutating requests/responses. - graphql:
query_typed<T>for deserializing graphql responses into typed structs.