Trait OdooOrmMethod

Source
pub trait OdooOrmMethod
where 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§

Source

fn endpoint(&self) -> &'static str

Describe the “ORM” method endpoint (e.g., “/web/session/authenticate”)

Source

fn method(&self) -> &'static str

Return the model method name (e.g., “read_group” or “create”)

Provided Methods§

Source

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.

Implementors§