pub fn optional(&self) -> Option<Duration> {
        match self {
            Self::Disabled => None,
            Self::All => Some(Duration::new(0, 0)),
            Self::Limit(duration) => Some(*duration),
        }
    }
/// Transforms FollowersOnly into an Option containing the time restriction duration.
Transforms FollowersOnly into an Option containing the time restriction duration.
Transforms FollowersOnly into an Option containing the time restriction duration .
pub fn optional(&self) -> Option<Duration> {
        match self {
            Self::Disabled => None,
            Self::All => Some(Duration::new(0, 0)),
            Self::Limit(duration) => Some(*duration),
        }
    }
pub fn optional ( & self ) -> Option < Duration > { match self { Self :: Disabled => None , Self :: All => Some ( Duration :: new ( 0 , 0 ) ) , Self :: Limit ( duration ) => Some ( * duration ) , } }
Transforms FollowersOnly into an Option containing the time restriction duration.
Transforms FollowersOnly into an Option containing the time restriction duration .
&self
&self