optimizely 0.5.0

An unofficial Rust SDK for Optimizely Feature Experimentation
1
2
3
4
5
6
7
8
9
10
11
12
13
// External imports
use thiserror::Error;

/// This type represents all possible errors that can occur when communicating with Event API
#[derive(Error, Debug, PartialEq)]
pub enum EventApiError {
    #[doc(hidden)]
    #[error("Failed to send request to Event API")]
    FailedRequest,
    #[doc(hidden)]
    #[error("Failed to serialize payload to JSON")]
    FailedSerialize,
}