use cheetah_string::CheetahString;
pub mod ack_msg;
pub mod batch_ack_msg;
pub mod pop_check_point;
pub trait AckMessage: std::fmt::Display {
fn ack_offset(&self) -> i64;
fn set_ack_offset(&mut self, ack_offset: i64);
fn start_offset(&self) -> i64;
fn set_start_offset(&mut self, start_offset: i64);
fn consumer_group(&self) -> &CheetahString;
fn set_consumer_group(&mut self, consumer_group: CheetahString);
fn topic(&self) -> &CheetahString;
fn set_topic(&mut self, topic: CheetahString);
fn queue_id(&self) -> i32;
fn set_queue_id(&mut self, queue_id: i32);
fn pop_time(&self) -> i64;
fn set_pop_time(&mut self, pop_time: i64);
fn broker_name(&self) -> &CheetahString;
fn set_broker_name(&mut self, broker_name: CheetahString);
fn as_any(&self) -> &dyn std::any::Any;
fn as_any_mut(&mut self) -> &mut dyn std::any::Any;
}