File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
sea-orm-macros/src/derives Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,15 @@ struct FromQueryResultItem {
16
16
pub ident : Ident ,
17
17
}
18
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).
19
28
struct TryFromQueryResultCheck < ' a > ( & ' a FromQueryResultItem ) ;
20
29
21
30
impl < ' a > ToTokens for TryFromQueryResultCheck < ' a > {
You can’t perform that action at this time.
0 commit comments