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
All of these getters in this crate are async (unless I overlooked something). I.e. the fact that they do work is obvious at any invocation site from the trailing .await.
If you nevertheless want to be explicit and add a prefix verb still, I'd go with maybe request_ or fetch_ instead (personally I'd just strip the get_ and be done with it though). 😁
Furthermore, I removed the Get prefixes from the names of matching structs, that are used to supply parameters to the resp. methods. I.e. they were named as such so that struct name matches function name and this change makes sure this is still the case.
The text was updated successfully, but these errors were encountered:
See Rust naming conventions on getters.
All of these getters in this crate are
async
(unless I overlooked something). I.e. the fact that they do work is obvious at any invocation site from the trailing.await
.If you nevertheless want to be explicit and add a prefix verb still, I'd go with maybe
request_
orfetch_
instead (personally I'd just strip theget_
and be done with it though). 😁Furthermore, I removed the
Get
prefixes from the names of matchingstruct
s, that are used to supply parameters to the resp. methods. I.e. they were named as such so thatstruct
name matches function name and this change makes sure this is still the case.The text was updated successfully, but these errors were encountered: