use-robot-id 0.0.1

Primitive robot identity vocabulary for RustUse
Documentation
  • Coverage
  • 100%
    15 out of 15 items documented1 out of 14 items with examples
  • Size
  • Source code size: 8.44 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 606.91 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 4s Average build duration of successful builds.
  • all releases: 4s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • RustUse/use-robotics
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • CloudBranch

use-robot-id

Primitive robot identity vocabulary for RustUse.

This crate stores robot IDs, serial numbers, and instance IDs as stable owned strings. It preserves caller casing and punctuation and rejects empty identifiers. It does not generate UUIDs, create inventory management systems, connect to asset systems, or fetch robot metadata.

Example

use use_robot_id::{RobotId, RobotInstanceId, RobotSerialNumber};

let id = RobotId::new("robot:A-17")?;
let serial = RobotSerialNumber::new("SN-2026-A")?;
let instance = RobotInstanceId::new("cell-4/arm-1")?;

assert_eq!(id.as_str(), "robot:A-17");
assert_eq!(serial.to_string(), "SN-2026-A");
assert_eq!(instance.as_str(), "cell-4/arm-1");
# Ok::<(), Box<dyn std::error::Error>>(())

License

Licensed under either the MIT license or Apache License, Version 2.0.