pub trait OdooOrmMethodwhere
Self: Sized + Debug + Serialize + JsonRpcParams<Container<Self> = OdooOrmContainer<Self>>,
Self::Container<Self>: Debug + Serialize,{
// Required methods
fn endpoint(&self) -> &'static str;
fn method(&self) -> &'static str;
// Provided method
fn _build(self, id: JsonRpcId) -> JsonRpcRequest<Self> { ... }
}
Expand description
An Odoo “Orm” 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.