Skip to main content

read_control

Function read_control 

Source
pub fn read_control(model: &Model, id: EntityId) -> ControlResult<Control<'_>>
Expand description

Read the control id against model’s declared release.

§Errors

ControlError::UnsupportedSchema or ControlError::MultipleSchemas if the model binds no single release this crate is verified against; ControlError::UnknownEntity if id is absent; ControlError::ForeignControl if it is not one of the four ControlKinds; and the record refusals of the module documentation (ControlError::ExtraAttributes, ControlError::MissingAttribute, ControlError::InvalidAttribute).