Skip to main content

assert_registry_layout_for

Function assert_registry_layout_for 

Source
pub fn assert_registry_layout_for<T: AstrsMessage>(urn: &str) -> Result<()>
Expand description

assert_registry_layout for a type whose registry entry requires a parameter the const URN cannot carry.

§Errors

As assert_registry_layout.

§Examples

use astrs_node_api::message::{CompressedImage, assert_registry_layout_for};

assert_registry_layout_for::<CompressedImage>("std/media/v1/CompressedImage[format=jpeg]")?;