pub trait OdooApiMethodwhere
Self: Sized + Debug + Serialize + JsonRpcParams<Container<Self> = OdooApiContainer<Self>>,
Self::Container<Self>: Debug + Serialize,{
// Required methods
fn describe(&self) -> (&'static str, &'static str);
fn endpoint(&self) -> &'static str;
// Provided method
fn _build(self, id: JsonRpcId) -> JsonRpcRequest<Self> { ... }
}
Expand description
An Odoo “API” (JSON-RPC) request type
Required Methods§
Provided Methods§
Sourcefn _build(self, id: JsonRpcId) -> JsonRpcRequest<Self>
fn _build(self, id: JsonRpcId) -> JsonRpcRequest<Self>
Build self
into a full JsonRpcRequest
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.