Function sentry::db::validator_message::get_validator_messages
source · pub async fn get_validator_messages(
pool: &DbPool,
channel_id: &ChannelId,
validator_id: &Option<ValidatorId>,
message_types: &[MessageType],
limit: u64
) -> Result<Vec<ValidatorMessage>, PoolError>Expand description
Retrieves [ValidatorMessage]s for a given [Channel],
filters them by the message_types and optionally,
filters them by the provided from [ValidatorId].