(
bucket: impl Into<String>,
prefix: impl Into<String>,
access_key_id: impl Into<String>,
secret_access_key: impl Into<String>,
)
| 130 | |
| 131 | impl S3BackendConfig { |
| 132 | pub fn new( |
| 133 | bucket: impl Into<String>, |
| 134 | prefix: impl Into<String>, |
| 135 | access_key_id: impl Into<String>, |
| 136 | secret_access_key: impl Into<String>, |
| 137 | ) -> Self { |
| 138 | Self { |
| 139 | endpoint: None, |
| 140 | region: None, |
| 141 | access_key_id: access_key_id.into(), |
| 142 | secret_access_key: secret_access_key.into(), |
| 143 | session_token: None, |
| 144 | bucket: bucket.into(), |
| 145 | prefix: prefix.into(), |
| 146 | force_path_style: false, |
| 147 | request_timeout: None, |
| 148 | max_read_bytes: None, |
| 149 | search_enabled: false, |
| 150 | max_objects_scanned: None, |
| 151 | max_grep_bytes_per_object: None, |
| 152 | search_concurrency: None, |
| 153 | } |
| 154 | } |
| 155 | |
| 156 | pub fn endpoint(mut self, endpoint: impl Into<String>) -> Self { |
| 157 | self.endpoint = Some(endpoint.into()); |
nothing calls this directly
no test coverage detected