1 2 3 4 5 6 7 8
#[macro_export] macro_rules! need_authentication { ($self:ident) => { if !$self.is_authenticated() { return Err(crate::errors::ClientError::ShouldBeAuthenticated()); } } }