pub trait Service {
type TicketData: Serialize + for<'de> Deserialize<'de> + PartialEq + Eq + Clone + Debug + Send + Sync;
type RequestData: Serialize + for<'de> Deserialize<'de> + Send + Sync + Clone;
type Output: Serialize + for<'de> Deserialize<'de> + Send + Debug + Clone;
const ID: ServiceId;
// Provided methods
fn path() -> Path { ... }
fn response_path() -> Path { ... }
fn confirmation_path() -> Path { ... }
}Required Associated Constants§
Required Associated Types§
type TicketData: Serialize + for<'de> Deserialize<'de> + PartialEq + Eq + Clone + Debug + Send + Sync
type RequestData: Serialize + for<'de> Deserialize<'de> + Send + Sync + Clone
type Output: Serialize + for<'de> Deserialize<'de> + Send + Debug + Clone
Provided Methods§
Sourcefn path() -> Path
fn path() -> Path
Use the service
Method: POST
Request: Self::Request
Response: OBResponse<Self>
fn response_path() -> Path
fn confirmation_path() -> Path
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.