canic_core/api/call.rs
1use crate::api::endpoint::EndpointId;
2
3///
4/// EndpointCall
5///
6
7#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
8pub struct EndpointCall {
9 pub endpoint: EndpointId,
10 pub kind: EndpointCallKind,
11}
12
13///
14/// EndpointCallKind
15///
16
17#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
18pub enum EndpointCallKind {
19 Query,
20 QueryComposite,
21 Update,
22}