k8s-openapi-codegen-common 0.27.1

Common code for the k8s-openapi code generator and k8s-openapi-derive
Documentation
1
2
3
4
5
6
7
8
9
10
11
12

impl{type_generics_impl} {local}Metadata for {type_name}{type_generics_type}{type_generics_where} {{
    type Ty = {metadata_type_name};

    fn metadata(&self) -> &<Self as {local}Metadata>::Ty {{
        {metadata_expr}
    }}

    fn metadata_mut(&mut self) -> &mut<Self as {local}Metadata>::Ty {{
        {metadata_mut_expr}
    }}
}}