Commit 787319c5 authored by Nugine's avatar Nugine
Browse files

feat(codegen/minio): `DeleteReplication`

parent 9726e1c3
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -38,7 +38,11 @@ pub fn codegen(ops: &Operations, rust_types: &RustTypes) {
            rust::Type::Timestamp(_) => continue,
            rust::Type::List(_) => continue,
            rust::Type::Map(_) => continue,
            rust::Type::StrEnum(_) => {}
            rust::Type::StrEnum(ty) => {
                if ty.is_custom_extension {
                    continue;
                }
            }
            rust::Type::Struct(ty) => {
                if ty.is_custom_extension {
                    continue;
+1 −0
Original line number Diff line number Diff line
@@ -125,6 +125,7 @@ pub fn collect_rust_types(model: &smithy::Model, ops: &Operations) -> RustTypes
                    name: rs_shape_name.clone(),
                    variants,
                    doc: shape.traits.doc().map(o),
                    is_custom_extension: shape.traits.minio(),
                });
                insert(rs_shape_name, ty);
            }
+2 −0
Original line number Diff line number Diff line
@@ -54,6 +54,8 @@ pub struct StrEnum {
    pub name: String,
    pub variants: Vec<StrEnumVariant>,
    pub doc: Option<String>,

    pub is_custom_extension: bool,
}

#[derive(Debug, Clone)]
+1 −0
Original line number Diff line number Diff line
@@ -427,6 +427,7 @@ fn codegen_xml_serde_content_struct(_ops: &Operations, rust_types: &RustTypes, t
            if field.option_type {
                g!("{},", field.name);
            } else {
                // g!("{0}: {0}.ok_or_else(||dbg!(DeError::MissingField))?,", field.name);
                g!("{0}: {0}.ok_or(DeError::MissingField)?,", field.name);
            }
        }
+1 −1
Original line number Diff line number Diff line
//! Auto generated by `codegen/src/v1/dto.rs:369`
//! Auto generated by `codegen/src/v1/dto.rs:370`
#![allow(clippy::empty_structs_with_brackets)]
#![allow(clippy::too_many_lines)]
Loading