pub fn expect_no_params(self) -> Result<(), Error> {
        match self {
            Params::None => Ok(()),
            Params::Array(ref v) if v.is_empty() => Ok(()),
            _ => Err(Error::InvalidParams(
                "No parameters were expected".to_string(),
            )),
        }
    }
/// Check for no params, returns Err if any params
Check for no params, returns Err if any params
Check for no params returns Err if any params
pub fn expect_no_params(self) -> Result<(), Error> {
        match self {
            Params::None => Ok(()),
            Params::Array(ref v) if v.is_empty() => Ok(()),
            _ => Err(Error::InvalidParams(
                "No parameters were expected".to_string(),
            )),
        }
    }
pub fn expect_no_params ( self ) -> Result < ( ) , Error > { match self { Params :: None => Ok ( ( ) ) , Params :: Array ( ref v ) if v . is_empty ( ) => Ok ( ( ) ) , _ => Err ( Error :: InvalidParams ( " " . to_string ( ) , ) ) , } }
Check for no params, returns Err if any params
Check for no params returns Err if any params
self
self