| 1 | use stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::iterrust-analyzer cargo core https://github.com/rust-lang/rust/library/core iter/::{Extendrust-analyzer cargo core https://github.com/rust-lang/rust/library/core iter/traits/collect/Extend#, IntoIteratorrust-analyzer cargo core https://github.com/rust-lang/rust/library/core iter/traits/collect/IntoIterator#}; |
| 2 | |
| 3 | #[deriverust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/derive:(Debugrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/macros/Debug:, Defaultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core default/Default:)] |
| 4 | pub struct AnyQueryResultrust-analyzer cargo sqlx-core 0.8.3 any/query_result/AnyQueryResult# { |
| 5 | #[doc(hidden)] |
| 6 | pub rows_affectedrust-analyzer cargo sqlx-core 0.8.3 any/query_result/AnyQueryResult#rows_affected.: u64, |
| 7 | #[doc(hidden)] |
| 8 | pub last_insert_idrust-analyzer cargo sqlx-core 0.8.3 any/query_result/AnyQueryResult#last_insert_id.: Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<i64>, |
| 9 | } |
| 10 | |
| 11 | impl AnyQueryResultrust-analyzer cargo sqlx-core 0.8.3 any/query_result/AnyQueryResult# { |
| 12 | pub fn rows_affectedrust-analyzer cargo sqlx-core 0.8.3 any/query_result/impl#[AnyQueryResult]rows_affected().(&self) -> u64 { |
| 13 | self.rows_affectedrust-analyzer cargo sqlx-core 0.8.3 any/query_result/AnyQueryResult#rows_affected. |
| 14 | } |
| 15 | |
| 16 | pub fn last_insert_idrust-analyzer cargo sqlx-core 0.8.3 any/query_result/impl#[AnyQueryResult]last_insert_id().(&self) -> Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<i64> { |
| 17 | self.last_insert_idrust-analyzer cargo sqlx-core 0.8.3 any/query_result/AnyQueryResult#last_insert_id. |
| 18 | } |
| 19 | } |
| 20 | |
| 21 | impl Extendrust-analyzer cargo core https://github.com/rust-lang/rust/library/core iter/traits/collect/Extend#<AnyQueryResultrust-analyzer cargo sqlx-core 0.8.3 any/query_result/AnyQueryResult#> for AnyQueryResultrust-analyzer cargo sqlx-core 0.8.3 any/query_result/AnyQueryResult# { |
| 22 | fn extendrust-analyzer cargo sqlx-core 0.8.3 any/query_result/impl#[AnyQueryResult][`Extend<Self>`]extend().<T: IntoIteratorrust-analyzer cargo core https://github.com/rust-lang/rust/library/core iter/traits/collect/IntoIterator#<Itemrust-analyzer cargo core https://github.com/rust-lang/rust/library/core iter/traits/collect/IntoIterator#Item# = AnyQueryResultrust-analyzer cargo sqlx-core 0.8.3 any/query_result/AnyQueryResult#>>(&mut self, iter: T) { |
| 23 | for elem in iter { |
| 24 | self.rows_affectedrust-analyzer cargo sqlx-core 0.8.3 any/query_result/AnyQueryResult#rows_affected. rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[u64][`AddAssign<Self>`]add_assign().+=rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[u64][`AddAssign<Self>`]add_assign(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[u64][`AddAssign<Self>`]add_assign().elem.rows_affectedrust-analyzer cargo sqlx-core 0.8.3 any/query_result/AnyQueryResult#rows_affected.; |
| 25 | self.last_insert_idrust-analyzer cargo sqlx-core 0.8.3 any/query_result/AnyQueryResult#last_insert_id. = elem.last_insert_idrust-analyzer cargo sqlx-core 0.8.3 any/query_result/AnyQueryResult#last_insert_id.; |
| 26 | } |
| 27 | } |
| 28 | } |