File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -6,10 +6,11 @@ use crate::common::{parse_args, ItemStructNamed};
66use crate :: { Error , Result } ;
77
88struct OdooWebArgs {
9- /// The JSON-RPC "service"
9+ /// The API endpoint (e.g. '/web/session/authenticate')
1010 path : String ,
1111
12- /// Optionally specify a name for the OdooClient impl
12+ /// A (required) name for the service (e.g. 'web_session_authenticate');
13+ /// this maps to the function implemented on OdooClient, (e.g. `client.web_session_authenticate()`)
1314 name : String ,
1415
1516 /// Is authentication required, optional, should we skip generating the
@@ -39,7 +40,7 @@ impl TryFrom<AttributeArgs> for OdooWebArgs {
3940 Some ( * span) ,
4041 ) ) ?
4142 }
42- }
43+ } ,
4344 ( "name" , lit, span) => {
4445 if let Lit :: Str ( s) = lit {
4546 name = Some ( s. value ( ) )
@@ -49,7 +50,7 @@ impl TryFrom<AttributeArgs> for OdooWebArgs {
4950 Some ( * span) ,
5051 ) ) ?
5152 }
52- }
53+ } ,
5354 ( "auth" , lit, span) => {
5455 if let Lit :: Bool ( b) = lit {
5556 auth = Some ( b. value ( ) )
@@ -59,7 +60,7 @@ impl TryFrom<AttributeArgs> for OdooWebArgs {
5960 Some ( * span) ,
6061 ) ) ?
6162 }
62- }
63+ } ,
6364
6465 ( key, _value, span) => Err ( (
6566 format ! (
You can’t perform that action at this time.
0 commit comments