Skip to content

Commit f6f5d71

Browse files
committed
more support
1 parent e92907d commit f6f5d71

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/rust/client_gen.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -851,6 +851,9 @@ fn make_part(param: &Param) -> RustResult {
851851
} else if param.tpe == DataType::String {
852852
Ok(indent() + r#"form = form.part(""# + &param.original_name + r#"", "# + part_type + "::text(" + &param.name + r#".to_string()).mime_str("text/plain; charset=utf-8")?);"#)
853853
}
854+
else if param.tpe == DataType::Int(IntFormat::U64) {
855+
Ok(indent() + r#"form = form.part(""# + &param.original_name + r#"", "# + part_type + "::text(" + &param.name + r#".to_string()).mime_str("text/plain; charset=utf-8")?);"#)
856+
}
854857
else if let DataType::Model(_) = param.tpe {
855858
Ok(indent() + r#"form = form.part(""# + &param.original_name + r#"", "# + part_type + "::text(crate::model::MultipartField::to_multipart_field(" + &param.name + r#")).mime_str(crate::model::MultipartField::mime_type("# + &param.name + r#"))?);"#)
856859
} else {

0 commit comments

Comments
 (0)