You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: check.rs
    path of file: ./repos/nearcore/runtime/runtime-params-estimator/estimator-warehouse/src
    
    the code of the file until where you have to start completion: use crate::db::{Db, EstimationRow};
use crate::zulip::{ZulipEndpoint, ZulipReport};
use crate::Metric;
use std::collections::BTreeSet;

#[derive(clap::Parser, Debug)]
pub(crate) struct CheckConfig {
    /// Send notifications from checks to specified stream.
    /// 
    
pub(crate) fn check(db: &Db, config: &CheckConfig) -> anyhow::Result<()> {
    let report = create_report(db, config)?;

    // This is the check command output to observe directly in the terminal.
    for change in report.changes() {
        println!("{change:?}");
    }

    let zulip_receiver = {
        if let Some(user) = config.zulip_user {
            Some(ZulipEndpoint::to_user(user)?)
        } else if let Some(stream) = &config.zulip_stream {
            Some(ZulipEndpoint::to_stream(stream.clone())?)
        } else {
            None
        }
    };

    if let Some(zulip) = zulip_receiver {
        zulip.post(&report)?;
    }
    Ok(())
}