Struct s3::serde_types::CompleteMultipartUploadData
source · Fields§
§parts: Vec<Part>Implementations§
source§impl CompleteMultipartUploadData
impl CompleteMultipartUploadData
sourcepub fn len(&self) -> usize
pub fn len(&self) -> usize
Examples found in repository?
src/command.rs (line 170)
164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180
pub fn content_length(&self) -> usize {
match &self {
Command::CopyObject { from: _ } => 0,
Command::PutObject { content, .. } => content.len(),
Command::PutObjectTagging { tags } => tags.len(),
Command::UploadPart { content, .. } => content.len(),
Command::CompleteMultipartUpload { data, .. } => data.len(),
Command::CreateBucket { config } => {
if let Some(payload) = config.location_constraint_payload() {
Vec::from(payload).len()
} else {
0
}
}
_ => 0,
}
}pub fn is_empty(&self) -> bool
Trait Implementations§
source§impl Clone for CompleteMultipartUploadData
impl Clone for CompleteMultipartUploadData
source§fn clone(&self) -> CompleteMultipartUploadData
fn clone(&self) -> CompleteMultipartUploadData
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more