| 10 | }; |
| 11 | |
| 12 | pub struct FtpCredentials { |
| 13 | pub is_secure: bool, |
| 14 | pub host: String, |
| 15 | pub port: String, |
| 16 | pub username: String, |
| 17 | pub password: String, |
| 18 | pub base_path: String, |
| 19 | } |
| 20 | |
| 21 | pub async fn test_connection(credentials: &FtpCredentials) -> Result<(), String> { |
| 22 | if credentials.is_secure { |
nothing calls this directly
no outgoing calls
no test coverage detected