pub async fn enroll_device(
endpoint: &str,
api_key: &str,
signer: &dyn Signer,
source_id: &str,
serial: Option<&str>,
) -> PhyTraceResult<Value>Expand description
Enroll signer’s key as the device for source_id; returns PhyCloud’s
device record. Fails with HTTP 409 if the source already has an active
device (use rotate_device_key).