use crate::base_types::{
TgqeCtx, TgqeErrorInfo, TgqePosition,
};
impl TgqeCtx {
pub fn new(
position: TgqePosition,
err_info: TgqeErrorInfo,
hints: &str,
labels: &str,
publisher: &str,
ns_timestamp: i64,
) -> Self {
Self {
position,
err_info,
hints: hints.to_string(),
labels: labels.to_string(),
publisher: publisher.to_string(),
ns_timestamp,
}
}
}