Struct eventify_http_server::api::log::get_logs_count
source · pub struct get_logs_count;Expand description
Get the Count of Logs
This endpoint returns the total count of logs present in the database. The response is a JSON object containing the count.
Responses
200 OK: Successfully retrieved the count of logs. The response body will be a JSON object with the structure{ "count": i64 }, wherei64is the total number of logs.500 Internal Server Error: Indicates that an error occurred on the server while processing the request. The response body will contain a JSON object with an error message.
Example
{
"count": 456
}
Trait Implementations§
source§impl HttpServiceFactory for get_logs_count
impl HttpServiceFactory for get_logs_count
fn register(self, __config: &mut AppService)
Auto Trait Implementations§
impl RefUnwindSafe for get_logs_count
impl Send for get_logs_count
impl Sync for get_logs_count
impl Unpin for get_logs_count
impl UnwindSafe for get_logs_count
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