Skip to main content

require_exists

Function require_exists 

Source
pub async fn require_exists(
    db: &SqlitePool,
    group_id: Uuid,
) -> Result<(), Error>
Expand description

Verify that the given group exists. Returns Error::NotFound if not.

ยงErrors

Returns Error::Database on lookup failure, Error::NotFound if the group does not exist.