ruma_identifiers_validation/
voip_version_id.rs

1
2
3
4
5
6
7
8
9
10
11
use js_int::{uint, UInt};

use crate::{error::VoipVersionIdError, Error};

pub fn validate(u: UInt) -> Result<(), Error> {
    if u != uint!(0) {
        return Err(VoipVersionIdError::WrongUintValue.into());
    }

    Ok(())
}