mirror of
https://github.com/OMGeeky/google-apis-rs.git
synced 2026-02-23 15:49:49 +01:00
Fix docs, OMG, finding this was *hard*
Lesson learned: Don't be to much in a rush or you will miss what's rigth in front of your nose
This commit is contained in:
@@ -148,7 +148,7 @@ All *structures* are marked with applicable traits to further categorize them an
|
||||
Generally speaking, you can invoke *Activities* like this:
|
||||
|
||||
```Rust,ignore
|
||||
let r = hub.resource().activity(...).${api.terms.action}()
|
||||
let r = hub.resource().activity(...).${api.terms.action}().await
|
||||
```
|
||||
|
||||
% if fr:
|
||||
@@ -157,7 +157,7 @@ Or specifically ...
|
||||
```ignore
|
||||
% for an, a in c.sta_map[fr.id].items():
|
||||
<% category, resource, activity = activity_split(an) %>\
|
||||
let r = hub.${mangle_ident(resource)}().${mangle_ident(activity)}(...).${api.terms.action}()
|
||||
let r = hub.${mangle_ident(resource)}().${mangle_ident(activity)}(...).${api.terms.action}().await
|
||||
% endfor
|
||||
```
|
||||
% endif
|
||||
|
||||
@@ -287,7 +287,7 @@ ${self._setter_fn(resource, method, m, p, part_prop, ThisType, c)}\
|
||||
# could also just skip the first element, but ... let's be safe
|
||||
if request_value and request_value.id == p.get(TREF):
|
||||
continue
|
||||
v = rvfrt(p.name, p)
|
||||
v = rnd_arg_val_for_type(activity_input_type(schemas, p))
|
||||
# we chose to replace random strings with their meaning, as indicated by the name !
|
||||
if is_string_value(v):
|
||||
v = '"%s"' % p.name
|
||||
|
||||
Reference in New Issue
Block a user