Skip to main content

get_game_by_id

Function get_game_by_id 

Source
pub fn get_game_by_id(
    state: State<'_, AppState>,
    id: String,
) -> Result<Option<Game>, AppError>
Expand description

Recupera um único jogo da biblioteca pelo ID.

Retorna None se o ID não existir — não é considerado erro.