pub struct SessionAuthenticate { /* private fields */ }
Expand description
Authenticate to an Odoo database
This method performs a bona-fide Odoo “authentication”; it checks the user
name/password, and creates a new session_id
(which is returned via the
Set-Cookie
header).
Note that by itself, this function isn’t able to parse the session_id
token,
so it probably isn’t very useful.
See authenticate
if you’d like to
authenticate an OdooClient
.
Reference: web/controllers/session.py
Trait Implementations§
Source§impl Debug for SessionAuthenticate
impl Debug for SessionAuthenticate
Source§impl JsonRpcParams for SessionAuthenticate
impl JsonRpcParams for SessionAuthenticate
type Container<T> = OdooWebContainer<SessionAuthenticate>
type Response = SessionAuthenticateResponse
fn build(self, id: JsonRpcId) -> JsonRpcRequest<Self>
Source§impl OdooWebMethod for SessionAuthenticate
impl OdooWebMethod for SessionAuthenticate
Source§fn endpoint(&self) -> &'static str
fn endpoint(&self) -> &'static str
Describe method endpoint (e.g., “/web/session/authenticate”)
Source§fn _build(self, id: JsonRpcId) -> JsonRpcRequest<Self>
fn _build(self, id: JsonRpcId) -> JsonRpcRequest<Self>
Build
self
into a full JsonRpcRequest
Auto Trait Implementations§
impl Freeze for SessionAuthenticate
impl RefUnwindSafe for SessionAuthenticate
impl Send for SessionAuthenticate
impl Sync for SessionAuthenticate
impl Unpin for SessionAuthenticate
impl UnwindSafe for SessionAuthenticate
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more