Skip to main content

get_by_id

Function get_by_id 

Source
pub fn get_by_id(id: u64) -> Result<Identity, IdentityError>
Expand description

Fetch a preset identity by its numeric ID (1–10).

§Errors

Returns IdentityError::NotFound if no preset has the given ID.