We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d007a8e commit fca8edfCopy full SHA for fca8edf
src/error.rs
@@ -1,7 +1,10 @@
1
use thiserror::Error;
2
3
+/// [`Result`](std::result::Result) type that is returned from functions with error
4
+/// as [`TypesenseError`](crate::error::TypesenseError).
5
pub type Result<T> = std::result::Result<T, TypesenseError>;
6
7
+/// Represents an error that can occur while using the library.
8
#[derive(Error, Debug)]
9
pub enum TypesenseError {
10
/// Config error.
src/lib.rs
@@ -4,3 +4,5 @@
//! Welcome to typesense, the rust library for the Typesense API.
mod error;
+
+pub use error::{Result, TypesenseError};
0 commit comments