ruma_identifiers_validation/
voip_version_id.rs

1use js_int::{uint, UInt};
2
3use crate::{error::VoipVersionIdError, Error};
4
5pub fn validate(u: UInt) -> Result<(), Error> {
6    if u != uint!(0) {
7        return Err(VoipVersionIdError::WrongUintValue.into());
8    }
9
10    Ok(())
11}