| 1 | use stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::borrowrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc borrow/::Cowrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc borrow/Cow#; |
| 2 | |
| 3 | use sha2rust-analyzer cargo sha2 0.10.9 crate/::{Digestrust-analyzer cargo digest 0.10.7 digest/Digest#, Sha384rust-analyzer cargo sha2 0.10.9 Sha384#}; |
| 4 | |
| 5 | use superrust-analyzer cargo sqlx-core 0.8.3 migrate/::MigrationTyperust-analyzer cargo sqlx-core 0.8.3 migrate/migration_type/MigrationType#; |
| 6 | |
| 7 | #[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:, Clonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core clone/Clone:)] |
| 8 | pub struct Migrationrust-analyzer cargo sqlx-core 0.8.3 migrate/migration/Migration# { |
| 9 | pub versionrust-analyzer cargo sqlx-core 0.8.3 migrate/migration/Migration#version.: i64, |
| 10 | pub descriptionrust-analyzer cargo sqlx-core 0.8.3 migrate/migration/Migration#description.: Cowrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc borrow/Cow#<'static, str>, |
| 11 | pub migration_typerust-analyzer cargo sqlx-core 0.8.3 migrate/migration/Migration#migration_type.: MigrationTyperust-analyzer cargo sqlx-core 0.8.3 migrate/migration_type/MigrationType#, |
| 12 | pub sqlrust-analyzer cargo sqlx-core 0.8.3 migrate/migration/Migration#sql.: Cowrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc borrow/Cow#<'static, str>, |
| 13 | pub checksumrust-analyzer cargo sqlx-core 0.8.3 migrate/migration/Migration#checksum.: Cowrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc borrow/Cow#<'static, [u8]>, |
| 14 | pub no_txrust-analyzer cargo sqlx-core 0.8.3 migrate/migration/Migration#no_tx.: bool, |
| 15 | } |
| 16 | |
| 17 | impl Migrationrust-analyzer cargo sqlx-core 0.8.3 migrate/migration/Migration# { |
| 18 | pub fn newrust-analyzer cargo sqlx-core 0.8.3 migrate/migration/impl#[Migration]new().( |
| 19 | version: i64, |
| 20 | description: Cowrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc borrow/Cow#<'static, str>, |
| 21 | migration_type: MigrationTyperust-analyzer cargo sqlx-core 0.8.3 migrate/migration_type/MigrationType#, |
| 22 | sql: Cowrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc borrow/Cow#<'static, str>, |
| 23 | no_tx: bool, |
| 24 | ) -> Selfrust-analyzer cargo sqlx-core 0.8.3 migrate/migration/impl#[Migration] { |
| 25 | let checksum = Cowrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc borrow/Cow#::Ownedrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc borrow/Cow#Owned#(Vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/Vec#::fromrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T>`][`From<&[T]>`]from().(Sha384rust-analyzer cargo sha2 0.10.9 Sha384#::digestrust-analyzer cargo digest 0.10.7 digest/impl#[D][Digest]digest().(sql.as_bytesrust-analyzer cargo core https://github.com/rust-lang/rust/library/core str/impl#[str]as_bytes().()).as_slicerust-analyzer cargo generic-array 0.14.7 impl#[`GenericArray<T, N>`]as_slice().())); |
| 26 | |
| 27 | Migrationrust-analyzer cargo sqlx-core 0.8.3 migrate/migration/Migration# { |
| 28 | versionrust-analyzer cargo sqlx-core 0.8.3 migrate/migration/Migration#version., |
| 29 | descriptionrust-analyzer cargo sqlx-core 0.8.3 migrate/migration/Migration#description., |
| 30 | migration_typerust-analyzer cargo sqlx-core 0.8.3 migrate/migration/Migration#migration_type., |
| 31 | sqlrust-analyzer cargo sqlx-core 0.8.3 migrate/migration/Migration#sql., |
| 32 | checksumrust-analyzer cargo sqlx-core 0.8.3 migrate/migration/Migration#checksum., |
| 33 | no_txrust-analyzer cargo sqlx-core 0.8.3 migrate/migration/Migration#no_tx., |
| 34 | } |
| 35 | } |
| 36 | } |
| 37 | |
| 38 | #[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:, Clonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core clone/Clone:)] |
| 39 | pub struct AppliedMigrationrust-analyzer cargo sqlx-core 0.8.3 migrate/migration/AppliedMigration# { |
| 40 | pub versionrust-analyzer cargo sqlx-core 0.8.3 migrate/migration/AppliedMigration#version.: i64, |
| 41 | pub checksumrust-analyzer cargo sqlx-core 0.8.3 migrate/migration/AppliedMigration#checksum.: Cowrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc borrow/Cow#<'static, [u8]>, |
| 42 | } |