You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The first step to generating client code would be to build type-safe compile-time checked API objects. This is done by leveraging PhantomData and unit types. An example would be:
Then, we'll add an impl for the actual API request only when the type has NamePresent and NamespacePresent (we do this for all required parameters and fields). This means rustc won't compile the code when the user forgets some required entity.
Anyway, the focus for this issue would be to generate all of this stuff for all API objects (taking into account of required parameters and fields).
The text was updated successfully, but these errors were encountered:
The first step to generating client code would be to build type-safe compile-time checked API objects. This is done by leveraging
PhantomData
and unit types. An example would be:Then, we'll add an
impl
for the actual API request only when the type hasNamePresent
andNamespacePresent
(we do this for all required parameters and fields). This means rustc won't compile the code when the user forgets some required entity.Anyway, the focus for this issue would be to generate all of this stuff for all API objects (taking into account of required parameters and fields).
The text was updated successfully, but these errors were encountered: