">impl </span><span class="kw">crate</span>::Resource <span class="kw">for </span>APIResourceList {
<a href=#14 id=14 data-nosnippet>14</a>    <span class="kw">const </span>API_VERSION: <span class="kw-2">&amp;</span><span class="lifetime">'static </span>str = <span class="string">"v1"</span>;
<a href=#15 id=15 data-nosnippet>15</a>    <span class="kw">const </span>GROUP: <span class="kw-2">&amp;</span><span class="lifetime">'static </span>str = <span class="string">""</span>;
<a href=#16 id=16 data-nosnippet>16</a>    <span class="kw">const </span>KIND: <span class="kw-2">&amp;</span><span class="lifetime">'static </span>str = <span class="string">"APIResourceList"</span>;
<a href=#17 id=17 data-nosnippet>17</a>    <span class="kw">const </span>VERSION: <span class="kw-2">&amp;</span><span class="lifetime">'static </span>str = <span class="string">"v1"</span>;
<a href=#18 id=18 data-nosnippet>18</a>    <span class="kw">const </span>URL_PATH_SEGMENT: <span class="kw-2">&amp;</span><span class="lifetime">'static </span>str = <span class="string">""</span>;
<a href=#19 id=19 data-nosnippet>19</a>    <span class="kw">type </span>Scope = <span class="kw">crate</span>::ClusterResourceScope;
<a href=#20 id=20 data-nosnippet>20</a>}
<a href=#21 id=21 data-nosnippet>21</a>
<a href=#22 id=22 data-nosnippet>22</a><span class="kw">impl </span><span class="kw">crate</span>::DeepMerge <span class="kw">for </span>APIResourceList {
<a href=#23 id=23 data-nosnippet>23</a>    <span class="kw">fn </span>merge_from(<span class="kw-2">&amp;mut </span><span class="self">self</span>, other: <span class="self">Self</span>) {
<a href=#24 id=24 data-nosnippet>24</a>        <span class="kw">crate</span>::DeepMerge::merge_from(<span class="kw-2">&amp;mut </span><span class="self">self</span>.group_version, other.group_version);
<a href=#25 id=25 data-nosnippet>25</a>        <span class="kw">crate</span>::merge_strategies::list::atomic(<span class="kw-2">&amp;mut </span><span class="self">self</span>.resources, other.resources);
<a href=#26 id=26 data-nosnippet>26</a>    }
<a href=#27 id=27 data-nosnippet>27</a>}
<a href=#28 id=28 data-nosnippet>28</a>
<a href=#29 id=29 data-nosnippet>29</a><span class="kw">impl</span>&lt;<span class="lifetime">'de</span>&gt; <span class="kw">crate</span>::serde::Deserialize&lt;<span class="lifetime">'de</span>&gt; <span class="kw">for </span>APIResourceList {
<a href=#30 id=30 data-nosnippet>30</a>    <span class="kw">fn </span>deserialize&lt;D&gt;(deserializer: D) -&gt; <span class="prelude-ty">Result</span>&lt;<span class="self">Self</span>, D::Error&gt; <span class="kw">where </span>D: <span class="kw">crate</span>::serde::Deserializer&lt;<span class="lifetime">'de</span>&gt; {
<a href=#31 id=31 data-nosnippet>31</a>        <span class="attr">#[allow(non_camel_case_types)]
<a href=#32 id=32 data-nosnippet>32</a>        </span><span class="kw">enum </span>Field {
<a href=#33 id=33 data-nosnippet>33</a>            Key_api_version,
<a href=#34 id=34 data-nosnippet>34</a>            Key_kind,
<a href=#35 id=35 data-nosnippet>35</a>            Key_group_version,
<a href=#36 id=36 data-nosnippet>36</a>            Key_resources,
<a href=#37 id=37 data-nosnippet>37</a>            Other,
<a href=#38 id=38 data-nosnippet>38</a>        }
<a href=#39 id=39 data-nosnippet>39</a>
<a href=#40 id=40 data-nosnippet>40</a>        <span class="kw">impl</span>&lt;<span class="lifetime">'de</span>&gt; <span class="kw">crate</span>::serde::Deserialize&lt;<span class="lifetime">'de</span>&gt; <span class="kw">for </span>Field {
<a href=#41 id=41 data-nosnippet>41</a>            <span class="kw">fn </span>deserialize&lt;D&gt;(deserializer: D) -&gt; <span class="prelude-ty">Result</span>&lt;<span class="self">Self</span>, D::Error&gt; <span class="kw">where </span>D: <span class="kw">crate</span>::serde::Deserializer&lt;<span class="lifetime">'de</span>&gt; {
<a href=#42 id=42 data-nosnippet>42</a>                <span class="kw">struct </span>Visitor;
<a href=#43 id=43 data-nosnippet>43</a>
<a href=#44 id=44 data-nosnippet>44</a>                <span class="kw">impl </span><span class="kw">crate</span>::serde::de::Visitor&lt;<span class="lifetime">'_</span>&gt; <span class="kw">for </span>Visitor {
<a href=#45 id=45 data-nosnippet>45</a>                    <span class="kw">type </span>Value = Field;
<a href=#46 id=46 data-nosnippet>46</a>
<a href=#47 id=47 data-nosnippet>47</a>                    <span class="kw">fn </span>expecting(<span class="kw-2">&amp;</span><span class="self">self</span>, f: <span class="kw-2">&amp;mut </span>core::fmt::Formatter&lt;<span class="lifetime">'_</span>&gt;) -&gt; core::fmt::Result {
<a href=#48 id=48 data-nosnippet>48</a>                        f.write_str(<span class="string">"field identifier"</span>)
<a href=#49 id=49 data-nosnippet>49</a>                    }
<a href=#50 id=50 data-nosnippet>50</a>
<a href=#51 id=51 data-nosnippet>51</a>                    <span class="kw">fn </span>visit_str&lt;E&gt;(<span class="self">self</span>, v: <span class="kw-2">&amp;</span>str) -&gt; <span class="prelude-ty">Result</span>&lt;<span class="self">Self</span>::Value, E&gt; <span class="kw">where </span>E: <span class="kw">crate</span>::serde::de::Error {
<a href=#52 id=52 data-nosnippet>52</a>                        <span class="prelude-val">Ok</span>(<span class="kw">match </span>v {
<a href=#53 id=53 data-nosnippet>53</a>                            <span class="string">"apiVersion" </span>=&gt; Field::Key_api_version,
<a href=#54 id=54 data-nosnippet>54</a>                            <span class="string">"kind" </span>=&gt; Field::Key_kind,
<a href=#55 id=55 data-nosnippet>55</a>                            <span class="string">"groupVersion" </span>=&gt; Field::Key_group_version,
<a href=#56 id=56 data-nosnippet>56</a>                            <span class="string">"resources" </span>=&gt; Field::Key_resources,
<a href=#57 id=57 data-nosnippet>57</a>                            <span class="kw">_ </span>=&gt; Field::Other,
<a href=#58 id=58 data-nosnippet>58</a>                        })
<a href=#59 id=59 data-nosnippet>59</a>                    }
<a href=#60 id=60 data-nosnippet>60</a>                }
<a href=#61 id=61 data-nosnippet>61</a>
<a href=#62 id=62 data-nosnippet>62</a>                deserializer.deserialize_identifier(Visitor)
<a href=#63 id=63 data-nosnippet>63</a>            }
<a href=#64 id=64 data-nosnippet>64</a>        }
<a href=#65 id=65 data-nosnippet>65</a>
<a href=#66 id=66 data-nosnippet>66</a>        <span class="kw">struct </span>Visitor;
<a href=#67 id=67 data-nosnippet>67</a>
<a href=#68 id=68 data-nosnippet>68</a>        <span class="kw">impl</span>&lt;<span class="lifetime">'de</span>&gt; <span class="kw">crate</span>::serde::de::Visitor&lt;<span class="lifetime">'de</span>&gt; <span class="kw">for </span>Visitor {
<a href=#69 id=69 data-nosnippet>69</a>            <span class="kw">type </span>Value = APIResourceList;
<a href=#70 id=70 data-nosnippet>70</a>
<a href=#71 id=71 data-nosnippet>71</a>            <span class="kw">fn </span>expecting(<span class="kw-2">&amp;</span><span class="self">self</span>, f: <span class="kw-2">&amp;mut </span>core::fmt::Formatter&lt;<span class="lifetime">'_</span>&gt;) -&gt; core::fmt::Result {
<a href=#72 id=72 data-nosnippet>72</a>                f.write_str(&lt;<span class="self">Self</span>::Value <span class="kw">as </span><span class="kw">crate</span>::Resource&gt;::KIND)
<a href=#73 id=73 data-nosnippet>73</a>            }
<a href=#74 id=74 data-nosnippet>74</a>
<a href=#75 id=75 data-nosnippet>75</a>            <span class="kw">fn </span>visit_map&lt;A&gt;(<span class="self">self</span>, <span class="kw-2">mut </span>map: A) -&gt; <span class="prelude-ty">Result</span>&lt;<span class="self">Self</span>::Value, A::Error&gt; <span class="kw">where </span>A: <span class="kw">crate</span>::serde::de::MapAccess&lt;<span class="lifetime">'de</span>&gt; {
<a href=#76 id=76 data-nosnippet>76</a>                <span class="kw">let </span><span class="kw-2">mut </span>value_group_version: <span class="prelude-ty">Option</span>&lt;std::string::String&gt; = <span class="prelude-val">None</span>;
<a href=#77 id=77 data-nosnippet>77</a>                <span class="kw">let </span><span class="kw-2">mut </span>value_resources: <span class="prelude-ty">Option</span>&lt;std::vec::Vec&lt;<span class="kw">crate</span>::apimachinery::pkg::apis::meta::v1::APIResource&gt;&gt; = <span class="prelude-val">None</span>;
<a href=#78 id=78 data-nosnippet>78</a>
<a href=#79 id=79 data-nosnippet>79</a>                <span class="kw">while let </span><span class="prelude-val">Some</span>(key) = <span class="kw">crate</span>::serde::de::MapAccess::next_key::&lt;Field&gt;(<span class="kw-2">&amp;mut </span>map)<span class="question-mark">? </span>{
<a href=#80 id=80 data-nosnippet>80</a>                    <span class="kw">match </span>key {
<a href=#81 id=81 data-nosnippet>81</a>                        Field::Key_api_version =&gt; {
<a href=#82 id=82 data-nosnippet>82</a>                            <span class="kw">let </span>value_api_version: std::string::String = <span class="kw">crate</span>::serde::de::MapAccess::next_value(<span class="kw-2">&amp;mut </span>map)<span class="question-mark">?</span>;
<a href=#83 id=83 data-nosnippet>83</a>                            <span class="kw">if </span>value_api_version != &lt;<span class="self">Self</span>::Value <span class="kw">as </span><span class="kw">crate</span>::Resource&gt;::API_VERSION {
<a href=#84 id=84 data-nosnippet>84</a>                                <span class="kw">return </span><span class="prelude-val">Err</span>(<span class="kw">crate</span>::serde::de::Error::invalid_value(<span class="kw">crate</span>::serde::de::Unexpected::Str(<span class="kw-2">&amp;</span>value_api_version), <span class="kw-2">&amp;</span>&lt;<span class="self">Self</span>::Value <span class="kw">as </span><span class="kw">crate</span>::Resource&gt;::API_VERSION));
<a href=#85 id=85 data-nosnippet>85</a>                            }
<a href=#86 id=86 data-nosnippet>86</a>                        },
<a href=#87 id=87 data-nosnippet>87</a>                        Field::Key_kind =&gt; {
<a href=#88 id=88 data-nosnippet>88</a>                            <span class="kw">let </span>value_kind: std::string::String = <span class="kw">crate</span>::serde::de::MapAccess::next_value(<span class="kw-2">&amp;mut </span>map)<span class="question-mark">?</span>;
<a href=#89 id=89 data-nosnippet>89</a>                            <span class="kw">if </span>value_kind != &lt;<span class="self">Self</span>::Value <span class="kw">as </span><span class="kw">crate</span>::Resource&gt;::KIND {
<a href=#90 id=90 data-nosnippet>90</a>                                <span class="kw">return </span><span class="prelude-val">Err</span>(<span class="kw">crate</span>::serde::de::Error::invalid_value(<span class="kw">crate</span>::serde::de::Unexpected::Str(<span class="kw-2">&amp;</span>value_kind), <span class="kw-2">&amp;</span>&lt;<span class="self">Self</span>::Value <span class="kw">as </span><span class="kw">crate</span>::Resource&gt;::KIND));
<a href=#91 id=91 data-nosnippet>91</a>                            }
<a href=#92 id=92 data-nosnippet>92</a>                        },
<a href=#93 id=93 data-nosnippet>93</a>                        Field::Key_group_version =&gt; value_group_version = <span class="kw">crate</span>::serde::de::MapAccess::next_value(<span class="kw-2">&amp;mut </span>map)<span class="question-mark">?</span>,
<a href=#94 id=94 data-nosnippet>94</a>                        Field::Key_resources =&gt; value_resources = <span class="kw">crate</span>::serde::de::MapAccess::next_value(<span class="kw-2">&amp;mut </span>map)<span class="question-mark">?</span>,
<a href=#95 id=95 data-nosnippet>95</a>                        Field::Other =&gt; { <span class="kw">let _</span>: <span class="kw">crate</span>::serde::de::IgnoredAny = <span class="kw">crate</span>::serde::de::MapAccess::next_value(<span class="kw-2">&amp;mut </span>map)<span class="question-mark">?</span>; },
<a href=#96 id=96 data-nosnippet>96</a>                    }
<a href=#97 id=97 data-nosnippet>97</a>                }
<a href=#98 id=98 data-nosnippet>98</a>
<a href=#99 id=99 data-nosnippet>99</a>                <span class="prelude-val">Ok</span>(APIResourceList {
<a href=#100 id=100 data-nosnippet>100</a>                    group_version: value_group_version.unwrap_or_default(),
<a href=#101 id=101 data-nosnippet>101</a>                    resources: value_resources.unwrap_or_default(),
<a href=#102 id=102 data-nosnippet>102</a>                })
<a href=#103 id=103 data-nosnippet>103</a>            }
<a href=#104 id=104 data-nosnippet>104</a>        }
<a href=#105 id=105 data-nosnippet>105</a>
<a href=#106 id=106 data-nosnippet>106</a>        deserializer.deserialize_struct(
<a href=#107 id=107 data-nosnippet>107</a>            &lt;<span class="self">Self </span><span class="kw">as </span><span class="kw">crate</span>::Resource&gt;::KIND,
<a href=#108 id=108 data-nosnippet>108</a>            <span class="kw-2">&amp;</span>[
<a href=#109 id=109 data-nosnippet>109</a>                <span class="string">"apiVersion"</span>,
<a href=#110 id=110 data-nosnippet>110</a>                <span class="string">"kind"</span>,
<a href=#111 id=111 data-nosnippet>111</a>                <span class="string">"groupVersion"</span>,
<a href=#112 id=112 data-nosnippet>112</a>                <span class="string">"resources"</span>,
<a href=#113 id=113 data-nosnippet>113</a>            ],
<a href=#114 id=114 data-nosnippet>114</a>            Visitor,
<a href=#115 id=115 data-nosnippet>115</a>        )
<a href=#116 id=116 data-nosnippet>116</a>    }
<a href=#117 id=117 data-nosnippet>117</a>}
<a href=#118 id=118 data-nosnippet>118</a>
<a href=#119 id=119 data-nosnippet>119</a><span class="kw">impl </span><span class="kw">crate</span>::serde::Serialize <span class="kw">for </span>APIResourceList {
<a href=#120 id=120 data-nosnippet>120</a>    <span class="kw">fn </span>serialize&lt;S&gt;(<span class="kw-2">&amp;</span><span class="self">self</span>, serializer: S) -&gt; <span class="prelude-ty">Result</span>&lt;S::Ok, S::Error&gt; <span class="kw">where </span>S: <span class="kw">crate</span>::serde::Serializer {
<a href=#121 id=121 data-nosnippet>121</a>        <span class="kw">let </span><span class="kw-2">mut </span>state = serializer.serialize_struct(
<a href=#122 id=122 data-nosnippet>122</a>            &lt;<span class="self">Self </span><span class="kw">as </span><span class="kw">crate</span>::Resource&gt;::KIND,
<a href=#123 id=123 data-nosnippet>123</a>            <span class="number">4</span>,
<a href=#124 id=124 data-nosnippet>124</a>        )<span class="question-mark">?</span>;
<a href=#125 id=125 data-nosnippet>125</a>        <span class="kw">crate</span>::serde::ser::SerializeStruct::serialize_field(<span class="kw-2">&amp;mut </span>state, <span class="string">"apiVersion"</span>, &lt;<span class="self">Self </span><span class="kw">as </span><span class="kw">crate</span>::Resource&gt;::API_VERSION)<span class="question-mark">?</span>;
<a href=#126 id=126 data-nosnippet>126</a>        <span class="kw">crate</span>::serde::ser::SerializeStruct::serialize_field(<span class="kw-2">&amp;mut </span>state, <span class="string">"kind"</span>, &lt;<span class="self">Self </span><span class="kw">as </span><span class="kw">crate</span>::Resource&gt;::KIND)<span class="question-mark">?</span>;
<a href=#127 id=127 data-nosnippet>127</a>        <span class="kw">crate</span>::serde::ser::SerializeStruct::serialize_field(<span class="kw-2">&amp;mut </span>state, <span class="string">"groupVersion"</span>, <span class="kw-2">&amp;</span><span class="self">self</span>.group_version)<span class="question-mark">?</span>;
<a href=#128 id=128 data-nosnippet>128</a>        <span class="kw">crate</span>::serde::ser::SerializeStruct::serialize_field(<span class="kw-2">&amp;mut </span>state, <span class="string">"resources"</span>, <span class="kw-2">&amp;</span><span class="self">self</span>.resources)<span class="question-mark">?</span>;
<a href=#129 id=129 data-nosnippet>129</a>        <span class="kw">crate</span>::serde::ser::SerializeStruct::end(state)
<a href=#130 id=130 data-nosnippet>130</a>    }
<a href=#131 id=131 data-nosnippet>131</a>}
<a href=#132 id=132 data-nosnippet>132</a>
<a href=#133 id=133 data-nosnippet>133</a><span class="attr">#[cfg(feature = <span class="string">"schemars"</span>)]
<a href=#134 id=134 data-nosnippet>134</a></span><span class="kw">impl </span><span class="kw">crate</span>::schemars::JsonSchema <span class="kw">for </span>APIResourceList {
<a href=#135 id=135 data-nosnippet>135</a>    <span class="kw">fn </span>schema_name() -&gt; std::borrow::Cow&lt;<span class="lifetime">'static</span>, str&gt; {
<a href=#136 id=136 data-nosnippet>136</a>        <span class="string">"io.k8s.apimachinery.pkg.apis.meta.v1.APIResourceList"</span>.into()
<a href=#137 id=137 data-nosnippet>137</a>    }
<a href=#138 id=138 data-nosnippet>138</a>
<a href=#139 id=139 data-nosnippet>139</a>    <span class="kw">fn </span>json_schema(__gen: <span class="kw-2">&amp;mut </span><span class="kw">crate</span>::schemars::SchemaGenerator) -&gt; <span class="kw">crate</span>::schemars::Schema {
<a href=#140 id=140 data-nosnippet>140</a>        <span class="macro">crate::schemars::json_schema!</span>({
<a href=#141 id=141 data-nosnippet>141</a>            <span class="string">"description"</span>: <span class="string">"APIResourceList is a list of APIResource, it is used to expose the name of the resources supported in a specific group and version, and if the resource is namespaced."</span>,
<a href=#142 id=142 data-nosnippet>142</a>            <span class="string">"type"</span>: <span class="string">"object"</span>,
<a href=#143 id=143 data-nosnippet>143</a>            <span class="string">"properties"</span>: {
<a href=#144 id=144 data-nosnippet>144</a>                <span class="string">"apiVersion"</span>: {
<a href=#145 id=145 data-nosnippet>145</a>                    <span class="string">"description"</span>: <span class="string">"APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources"</span>,
<a href=#146 id=146 data-nosnippet>146</a>                    <span class="string">"type"</span>: <span class="string">"string"</span>,
<a href=#147 id=147 data-nosnippet>147</a>                },
<a href=#148 id=148 data-nosnippet>148</a>                <span class="string">"groupVersion"</span>: {
<a href=#149 id=149 data-nosnippet>149</a>                    <span class="string">"description"</span>: <span class="string">"groupVersion is the group and version this APIResourceList is for."</span>,
<a href=#150 id=150 data-nosnippet>150</a>                    <span class="string">"type"</span>: <span class="string">"string"</span>,
<a href=#151 id=151 data-nosnippet>151</a>                },
<a href=#152 id=152 data-nosnippet>152</a>                <span class="string">"kind"</span>: {
<a href=#153 id=153 data-nosnippet>153</a>                    <span class="string">"description"</span>: <span class="string">"Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds"</span>,
<a href=#154 id=154 data-nosnippet>154</a>                    <span class="string">"type"</span>: <span class="string">"string"</span>,
<a href=#155 id=155 data-nosnippet>155</a>                },
<a href=#156 id=156 data-nosnippet>156</a>                <span class="string">"resources"</span>: {
<a href=#157 id=157 data-nosnippet>157</a>                    <span class="string">"description"</span>: <span class="string">"resources contains the name of the resources and if they are namespaced."</span>,
<a href=#158 id=158 data-nosnippet>158</a>                    <span class="string">"type"</span>: <span class="string">"array"</span>,
<a href=#159 id=159 data-nosnippet>159</a>                    <span class="string">"items"</span>: (__gen.subschema_for::&lt;<span class="kw">crate</span>::apimachinery::pkg::apis::meta::v1::APIResource&gt;()),
<a href=#160 id=160 data-nosnippet>160</a>                },
<a href=#161 id=161 data-nosnippet>161</a>            },
<a href=#162 id=162 data-nosnippet>162</a>            <span class="string">"required"</span>: [
<a href=#163 id=163 data-nosnippet>163</a>                <span class="string">"groupVersion"</span>,
<a href=#164 id=164 data-nosnippet>164</a>                <span class="string">"resources"</span>,
<a href=#165 id=165 data-nosnippet>165</a>            ],
<a href=#166 id=166 data-nosnippet>166</a>        })
<a href=#167 id=167 data-nosnippet>167</a>    }
<a href=#168 id=168 data-nosnippet>168</a>}</code></pre></div></section></main></body></html>