Skip to main content

Service

Trait Service 

Source
pub trait Service {
    type TicketData: Serialize + for<'de> Deserialize<'de> + PartialEq + Eq + Clone + Debug + Send + Sync + 'static;
    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§

Source

type TicketData: Serialize + for<'de> Deserialize<'de> + PartialEq + Eq + Clone + Debug + Send + Sync + 'static

Source

type RequestData: Serialize + for<'de> Deserialize<'de> + Send + Sync + Clone

Source

type Output: Serialize + for<'de> Deserialize<'de> + Send + Debug + Clone

Provided Methods§

Source

fn path() -> Path

Use the service

Method: POST
Request: Self::Request
Response: OBResponse<Self>

Source

fn response_path() -> Path

Source

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.

Implementors§

Source§

impl Service for routex_api::accounts::Service

Source§

impl Service for routex_api::balances::Service

Source§

impl Service for routex_api::collect_payment::Service

Source§

impl Service for routex_api::transactions::Service

Source§

impl Service for routex_api::transfer::Service