Rust

target

Module

What sources and destinations share: errors, warnings, the cache, and HTTP calls to the service they read or write.

Contents

use utopia_migration::Target;
Rust
pub struct Target

The state every source and destination has: the cache it shares with its transfer, the errors and warnings it collected, the root resource of the current run, and the base URL and headers of Target::call.

use utopia_migration::target::Body;
Rust
pub enum Body

An HTTP response of [Target::call]: its body, decoded when JSON.

use utopia_migration::target::AsAny;
Rust
pub trait AsAny: std::any::Any

Downcasting of sources and destinations to their concrete types (to read a mock's or a destination's own state after a transfer that owns it).

Implemented byT
Rust
pub type Params = Array

Request parameters of Target::call.

Rust
pub const CONNECT_TIMEOUT: i64 = 10

Seconds to wait for a remote to accept the connection.

Rust
pub const REQUEST_TIMEOUT: i64 = 30

Seconds an Appwrite SDK request may take in total (its requests are single API pages and file chunks).

Rust
pub const STALL_TIMEOUT: i64 = 30

Seconds a request may go without receiving a byte before it is abandoned, so transfers of any length stay alive while data arrives.