We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a7bfac9 commit 14258a0Copy full SHA for 14258a0
sea-orm-macros/src/derives/from_query_result.rs
@@ -16,6 +16,15 @@ struct FromQueryResultItem {
16
pub ident: Ident,
17
}
18
19
+/// Initially, we try to obtain the value for each field and check if it is an ordinary DB error
20
+/// (which we return immediatly), or a null error.
21
+///
22
+/// ### Background
23
24
+/// Null errors do not necessarily mean that the deserialization as a whole fails,
25
+/// since structs embedding the current one might have wrapped the current one in an `Option`.
26
+/// In this case, we do not want to swallow other errors, which are very likely to actually be
27
+/// programming errors that should be noticed (and fixed).
28
struct TryFromQueryResultCheck<'a>(&'a FromQueryResultItem);
29
30
impl<'a> ToTokens for TryFromQueryResultCheck<'a> {
0 commit comments