pub fn rate_limit_per_user(mut self, limit: u64) -> Result<Self, TextFieldsError> {
        if limit > Self::MAX_RATE_LIMIT {
            return Err(TextFieldsError::RateLimitInvalid { limit });
        }

        self.0.rate_limit_per_user.replace(limit);

        Ok(self)
    }
/// Set the channel's rate limit per user.
///
/// # Errors
///
/// Returns [`TextFieldsError::RateLimitInvalid`] if the rate limit is invalid.
Set the channel's rate limit per user.
Set the channel ' s rate limit per user .
pub fn rate_limit_per_user(mut self, limit: u64) -> Result<Self, TextFieldsError> {
        if limit > Self::MAX_RATE_LIMIT {
            return Err(TextFieldsError::RateLimitInvalid { limit });
        }
        self.0.rate_limit_per_user.replace(limit);
        Ok(self)
    }
pub fn rate_limit_per_user ( mut self , limit : u64 ) -> Result < Self , TextFieldsError > { if limit > Self :: MAX_RATE_LIMIT { return Err ( TextFieldsError :: RateLimitInvalid { limit } ) ; } self . 0 . rate_limit_per_user . replace ( limit ) ; Ok ( self ) }
Set the channel's rate limit per user.
Set the channel ' s rate limit per user .
mut self
limit
u64
errors
Returns [`TextFieldsError::RateLimitInvalid`] if the rate limit is invalid.
Returns [ ` TextFieldsError :: RateLimitInvalid ` ] if the rate limit is invalid .