Struct tencentcloud_cls_sdk_rust::LogProducer
source · pub struct LogProducer<'a> { /* private fields */ }
Implementations§
source§impl<'a> LogProducer<'a>
impl<'a> LogProducer<'a>
pub fn new( access_key: &'a str, access_secret: &'a str, host: &'a str, ) -> Result<Self, LogProducerError>
pub async fn put_logs_json( &self, topic_id: String, data: &str, ) -> Result<Response, LogProducerError>
pub async fn put_logs( &self, topic_id: String, log_group: &LogGroupList<'_>, ) -> Result<Response, LogProducerError>
Auto Trait Implementations§
impl<'a> Freeze for LogProducer<'a>
impl<'a> !RefUnwindSafe for LogProducer<'a>
impl<'a> Send for LogProducer<'a>
impl<'a> Sync for LogProducer<'a>
impl<'a> Unpin for LogProducer<'a>
impl<'a> !UnwindSafe for LogProducer<'a>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more