pub struct TransferParams {
pub operation: TransferOperation,
pub local_path: String,
pub remote_path: String,
pub transport: TransferTransport,
pub kind: Option<TransferKind>,
pub overwrite: bool,
pub timeout_ms: Option<u64>,
pub background: bool,
pub verbose: bool,
pub rsync_options: RsyncOptions,
}Fields§
§operation: TransferOperation§local_path: StringLocal path.
- For
put: local source path (file or directory; must be within local_root, relative-only) - For
get: local destination path (must be within local_root, relative-only)
remote_path: StringRemote path.
- For
put: remote destination path - For
get: remote source path
transport: TransferTransport§kind: Option<TransferKind>Optional explicit kind. If omitted, the server auto-detects.
overwrite: boolWhether overwriting an existing destination is allowed.
Note: For file transfers, overwrite=false relies on creating a hard-link to install the
final file without replacement. This requires hard-link support on the destination
filesystem:
put(local -> remote): requires hard-link support on the remote filesystemget(remote -> local): requires hard-link support on the local filesystem
timeout_ms: Option<u64>Optional timeout override for this transfer.
background: boolRun as an in-memory background job and return a job ID immediately.
verbose: boolWhen true, return full diagnostic response including staging details. When false or omitted, return compact response with only essential fields.
rsync_options: RsyncOptionsRsync-specific options. Only used when transport is Rsync.
Trait Implementations§
Source§impl Clone for TransferParams
impl Clone for TransferParams
Source§fn clone(&self) -> TransferParams
fn clone(&self) -> TransferParams
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TransferParams
impl Debug for TransferParams
Source§impl Default for TransferParams
impl Default for TransferParams
Source§impl<'de> Deserialize<'de> for TransferParams
impl<'de> Deserialize<'de> for TransferParams
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for TransferParams
impl RefUnwindSafe for TransferParams
impl Send for TransferParams
impl Sync for TransferParams
impl Unpin for TransferParams
impl UnsafeUnpin for TransferParams
impl UnwindSafe for TransferParams
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more