pub struct FtpConfig {
pub host: String,
pub port: u16,
pub username: String,
pub password: String,
pub ftps_enabled: bool,
pub anonymous: bool,
pub allow_invalid_certs: bool,
}Expand description
Configuration for an FTP/FTPS connection.
Fields§
§host: String§port: u16§username: String§password: String§ftps_enabled: bool§anonymous: bool§allow_invalid_certs: boolExplicit opt-in to skip TLS certificate validation for FTPS. Defaults to
false so an untrusted/self-signed cert aborts the handshake. The
frontend must set this to true with the user’s informed consent.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for FtpConfig
impl<'de> Deserialize<'de> for FtpConfig
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 FtpConfig
impl RefUnwindSafe for FtpConfig
impl Send for FtpConfig
impl Sync for FtpConfig
impl Unpin for FtpConfig
impl UnsafeUnpin for FtpConfig
impl UnwindSafe for FtpConfig
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