Debian Codegraph @

src/query_result.rs

raw symbols SCIP
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 PgQueryResultrust-analyzer cargo sqlx-postgres 0.8.3 query_result/PgQueryResult# {
5 pub(superrust-analyzer cargo sqlx-postgres 0.8.3 crate/) rows_affectedrust-analyzer cargo sqlx-postgres 0.8.3 query_result/PgQueryResult#rows_affected.: u64,
6 }
7
8 impl PgQueryResultrust-analyzer cargo sqlx-postgres 0.8.3 query_result/PgQueryResult# {
9 pub fn rows_affectedrust-analyzer cargo sqlx-postgres 0.8.3 query_result/impl#[PgQueryResult]rows_affected().(&self) -> u64 {
10 self.rows_affectedrust-analyzer cargo sqlx-postgres 0.8.3 query_result/PgQueryResult#rows_affected.
11 }
12 }
13
14 impl Extendrust-analyzer cargo core https://github.com/rust-lang/rust/library/core iter/traits/collect/Extend#<PgQueryResultrust-analyzer cargo sqlx-postgres 0.8.3 query_result/PgQueryResult#> for PgQueryResultrust-analyzer cargo sqlx-postgres 0.8.3 query_result/PgQueryResult# {
15 fn extendrust-analyzer cargo sqlx-postgres 0.8.3 query_result/impl#[PgQueryResult][`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# = PgQueryResultrust-analyzer cargo sqlx-postgres 0.8.3 query_result/PgQueryResult#>>(&mut self, iter: T) {
16 for elem in iter {
17 self.rows_affectedrust-analyzer cargo sqlx-postgres 0.8.3 query_result/PgQueryResult#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-postgres 0.8.3 query_result/PgQueryResult#rows_affected.;
18 }
19 }
20 }
21
22 #[cfg(feature = "any")]
23 impl Fromrust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/From#<PgQueryResultrust-analyzer cargo sqlx-postgres 0.8.3 query_result/PgQueryResult#> for sqlx_corerust-analyzer cargo sqlx-core 0.8.3 crate/::anyrust-analyzer cargo sqlx-core 0.8.3 any/::AnyQueryResultrust-analyzer cargo sqlx-core 0.8.3 any/query_result/AnyQueryResult# {
24 fn fromrust-analyzer cargo sqlx-postgres 0.8.3 query_result/impl#[`sqlx_core::any::AnyQueryResult`][`From<PgQueryResult>`]from().(done: PgQueryResultrust-analyzer cargo sqlx-postgres 0.8.3 query_result/PgQueryResult#) -> Selfrust-analyzer cargo sqlx-postgres 0.8.3 query_result/impl#[`sqlx_core::any::AnyQueryResult`][`From<PgQueryResult>`] {
25 sqlx_corerust-analyzer cargo sqlx-core 0.8.3 crate/::anyrust-analyzer cargo sqlx-core 0.8.3 any/::AnyQueryResultrust-analyzer cargo sqlx-core 0.8.3 any/query_result/AnyQueryResult# {
26 rows_affectedrust-analyzer cargo sqlx-core 0.8.3 any/query_result/AnyQueryResult#rows_affected.: done.rows_affectedrust-analyzer cargo sqlx-postgres 0.8.3 query_result/PgQueryResult#rows_affected.,
27 last_insert_idrust-analyzer cargo sqlx-core 0.8.3 any/query_result/AnyQueryResult#last_insert_id.: Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#,
28 }
29 }
30 }