1191 1185 | ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::StructureSet>>,
|
1192 1186 | pub(crate) structure_list_with_no_key: ::std::option::Option<
|
1193 1187 | crate::constrained::MaybeConstrained<crate::model::StructureSetWithNoKey>,
|
1194 1188 | >,
|
1195 1189 | pub(crate) union_list:
|
1196 1190 | ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::UnionSet>>,
|
1197 1191 | }
|
1198 1192 | impl Builder {
|
1199 1193 | #[allow(missing_docs)] // documentation missing in model
|
1200 1194 | pub fn blob_list(mut self, input: ::std::option::Option<crate::model::BlobSet>) -> Self {
|
1201 - | self.blob_list = input.map(
|
1202 - | #[allow(clippy::redundant_closure)]
|
1203 - | |v| crate::constrained::MaybeConstrained::Constrained(v),
|
1204 - | );
|
1195 + | self.blob_list = input.map(crate::constrained::MaybeConstrained::Constrained);
|
1205 1196 | self
|
1206 1197 | }
|
1207 1198 | #[allow(missing_docs)] // documentation missing in model
|
1208 1199 | pub(crate) fn set_blob_list(
|
1209 1200 | mut self,
|
1210 1201 | input: Option<
|
1211 1202 | impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::model::BlobSet>>,
|
1212 1203 | >,
|
1213 1204 | ) -> Self {
|
1214 1205 | self.blob_list = input.map(|v| v.into());
|
1215 1206 | self
|
1216 1207 | }
|
1217 1208 | #[allow(missing_docs)] // documentation missing in model
|
1218 1209 | pub fn boolean_list(
|
1219 1210 | mut self,
|
1220 1211 | input: ::std::option::Option<crate::model::BooleanSet>,
|
1221 1212 | ) -> Self {
|
1222 - | self.boolean_list = input.map(
|
1223 - | #[allow(clippy::redundant_closure)]
|
1224 - | |v| crate::constrained::MaybeConstrained::Constrained(v),
|
1225 - | );
|
1213 + | self.boolean_list = input.map(crate::constrained::MaybeConstrained::Constrained);
|
1226 1214 | self
|
1227 1215 | }
|
1228 1216 | #[allow(missing_docs)] // documentation missing in model
|
1229 1217 | pub(crate) fn set_boolean_list(
|
1230 1218 | mut self,
|
1231 1219 | input: Option<
|
1232 1220 | impl ::std::convert::Into<
|
1233 1221 | crate::constrained::MaybeConstrained<crate::model::BooleanSet>,
|
1234 1222 | >,
|
1235 1223 | >,
|
1236 1224 | ) -> Self {
|
1237 1225 | self.boolean_list = input.map(|v| v.into());
|
1238 1226 | self
|
1239 1227 | }
|
1240 1228 | #[allow(missing_docs)] // documentation missing in model
|
1241 1229 | pub fn string_list(
|
1242 1230 | mut self,
|
1243 1231 | input: ::std::option::Option<crate::model::StringSet>,
|
1244 1232 | ) -> Self {
|
1245 - | self.string_list = input.map(
|
1246 - | #[allow(clippy::redundant_closure)]
|
1247 - | |v| crate::constrained::MaybeConstrained::Constrained(v),
|
1248 - | );
|
1233 + | self.string_list = input.map(crate::constrained::MaybeConstrained::Constrained);
|
1249 1234 | self
|
1250 1235 | }
|
1251 1236 | #[allow(missing_docs)] // documentation missing in model
|
1252 1237 | pub(crate) fn set_string_list(
|
1253 1238 | mut self,
|
1254 1239 | input: Option<
|
1255 1240 | impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::model::StringSet>>,
|
1256 1241 | >,
|
1257 1242 | ) -> Self {
|
1258 1243 | self.string_list = input.map(|v| v.into());
|
1259 1244 | self
|
1260 1245 | }
|
1261 1246 | #[allow(missing_docs)] // documentation missing in model
|
1262 1247 | pub fn byte_list(mut self, input: ::std::option::Option<crate::model::ByteSet>) -> Self {
|
1263 - | self.byte_list = input.map(
|
1264 - | #[allow(clippy::redundant_closure)]
|
1265 - | |v| crate::constrained::MaybeConstrained::Constrained(v),
|
1266 - | );
|
1248 + | self.byte_list = input.map(crate::constrained::MaybeConstrained::Constrained);
|
1267 1249 | self
|
1268 1250 | }
|
1269 1251 | #[allow(missing_docs)] // documentation missing in model
|
1270 1252 | pub(crate) fn set_byte_list(
|
1271 1253 | mut self,
|
1272 1254 | input: Option<
|
1273 1255 | impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::model::ByteSet>>,
|
1274 1256 | >,
|
1275 1257 | ) -> Self {
|
1276 1258 | self.byte_list = input.map(|v| v.into());
|
1277 1259 | self
|
1278 1260 | }
|
1279 1261 | #[allow(missing_docs)] // documentation missing in model
|
1280 1262 | pub fn short_list(mut self, input: ::std::option::Option<crate::model::ShortSet>) -> Self {
|
1281 - | self.short_list = input.map(
|
1282 - | #[allow(clippy::redundant_closure)]
|
1283 - | |v| crate::constrained::MaybeConstrained::Constrained(v),
|
1284 - | );
|
1263 + | self.short_list = input.map(crate::constrained::MaybeConstrained::Constrained);
|
1285 1264 | self
|
1286 1265 | }
|
1287 1266 | #[allow(missing_docs)] // documentation missing in model
|
1288 1267 | pub(crate) fn set_short_list(
|
1289 1268 | mut self,
|
1290 1269 | input: Option<
|
1291 1270 | impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::model::ShortSet>>,
|
1292 1271 | >,
|
1293 1272 | ) -> Self {
|
1294 1273 | self.short_list = input.map(|v| v.into());
|
1295 1274 | self
|
1296 1275 | }
|
1297 1276 | #[allow(missing_docs)] // documentation missing in model
|
1298 1277 | pub fn integer_list(
|
1299 1278 | mut self,
|
1300 1279 | input: ::std::option::Option<crate::model::IntegerSet>,
|
1301 1280 | ) -> Self {
|
1302 - | self.integer_list = input.map(
|
1303 - | #[allow(clippy::redundant_closure)]
|
1304 - | |v| crate::constrained::MaybeConstrained::Constrained(v),
|
1305 - | );
|
1281 + | self.integer_list = input.map(crate::constrained::MaybeConstrained::Constrained);
|
1306 1282 | self
|
1307 1283 | }
|
1308 1284 | #[allow(missing_docs)] // documentation missing in model
|
1309 1285 | pub(crate) fn set_integer_list(
|
1310 1286 | mut self,
|
1311 1287 | input: Option<
|
1312 1288 | impl ::std::convert::Into<
|
1313 1289 | crate::constrained::MaybeConstrained<crate::model::IntegerSet>,
|
1314 1290 | >,
|
1315 1291 | >,
|
1316 1292 | ) -> Self {
|
1317 1293 | self.integer_list = input.map(|v| v.into());
|
1318 1294 | self
|
1319 1295 | }
|
1320 1296 | #[allow(missing_docs)] // documentation missing in model
|
1321 1297 | pub fn long_list(mut self, input: ::std::option::Option<crate::model::LongSet>) -> Self {
|
1322 - | self.long_list = input.map(
|
1323 - | #[allow(clippy::redundant_closure)]
|
1324 - | |v| crate::constrained::MaybeConstrained::Constrained(v),
|
1325 - | );
|
1298 + | self.long_list = input.map(crate::constrained::MaybeConstrained::Constrained);
|
1326 1299 | self
|
1327 1300 | }
|
1328 1301 | #[allow(missing_docs)] // documentation missing in model
|
1329 1302 | pub(crate) fn set_long_list(
|
1330 1303 | mut self,
|
1331 1304 | input: Option<
|
1332 1305 | impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::model::LongSet>>,
|
1333 1306 | >,
|
1334 1307 | ) -> Self {
|
1335 1308 | self.long_list = input.map(|v| v.into());
|
1336 1309 | self
|
1337 1310 | }
|
1338 1311 | #[allow(missing_docs)] // documentation missing in model
|
1339 1312 | pub fn timestamp_list(
|
1340 1313 | mut self,
|
1341 1314 | input: ::std::option::Option<crate::model::TimestampSet>,
|
1342 1315 | ) -> Self {
|
1343 - | self.timestamp_list = input.map(
|
1344 - | #[allow(clippy::redundant_closure)]
|
1345 - | |v| crate::constrained::MaybeConstrained::Constrained(v),
|
1346 - | );
|
1316 + | self.timestamp_list = input.map(crate::constrained::MaybeConstrained::Constrained);
|
1347 1317 | self
|
1348 1318 | }
|
1349 1319 | #[allow(missing_docs)] // documentation missing in model
|
1350 1320 | pub(crate) fn set_timestamp_list(
|
1351 1321 | mut self,
|
1352 1322 | input: Option<
|
1353 1323 | impl ::std::convert::Into<
|
1354 1324 | crate::constrained::MaybeConstrained<crate::model::TimestampSet>,
|
1355 1325 | >,
|
1356 1326 | >,
|
1357 1327 | ) -> Self {
|
1358 1328 | self.timestamp_list = input.map(|v| v.into());
|
1359 1329 | self
|
1360 1330 | }
|
1361 1331 | #[allow(missing_docs)] // documentation missing in model
|
1362 1332 | pub fn date_time_list(
|
1363 1333 | mut self,
|
1364 1334 | input: ::std::option::Option<crate::model::DateTimeSet>,
|
1365 1335 | ) -> Self {
|
1366 - | self.date_time_list = input.map(
|
1367 - | #[allow(clippy::redundant_closure)]
|
1368 - | |v| crate::constrained::MaybeConstrained::Constrained(v),
|
1369 - | );
|
1336 + | self.date_time_list = input.map(crate::constrained::MaybeConstrained::Constrained);
|
1370 1337 | self
|
1371 1338 | }
|
1372 1339 | #[allow(missing_docs)] // documentation missing in model
|
1373 1340 | pub(crate) fn set_date_time_list(
|
1374 1341 | mut self,
|
1375 1342 | input: Option<
|
1376 1343 | impl ::std::convert::Into<
|
1377 1344 | crate::constrained::MaybeConstrained<crate::model::DateTimeSet>,
|
1378 1345 | >,
|
1379 1346 | >,
|
1380 1347 | ) -> Self {
|
1381 1348 | self.date_time_list = input.map(|v| v.into());
|
1382 1349 | self
|
1383 1350 | }
|
1384 1351 | #[allow(missing_docs)] // documentation missing in model
|
1385 1352 | pub fn http_date_list(
|
1386 1353 | mut self,
|
1387 1354 | input: ::std::option::Option<crate::model::HttpDateSet>,
|
1388 1355 | ) -> Self {
|
1389 - | self.http_date_list = input.map(
|
1390 - | #[allow(clippy::redundant_closure)]
|
1391 - | |v| crate::constrained::MaybeConstrained::Constrained(v),
|
1392 - | );
|
1356 + | self.http_date_list = input.map(crate::constrained::MaybeConstrained::Constrained);
|
1393 1357 | self
|
1394 1358 | }
|
1395 1359 | #[allow(missing_docs)] // documentation missing in model
|
1396 1360 | pub(crate) fn set_http_date_list(
|
1397 1361 | mut self,
|
1398 1362 | input: Option<
|
1399 1363 | impl ::std::convert::Into<
|
1400 1364 | crate::constrained::MaybeConstrained<crate::model::HttpDateSet>,
|
1401 1365 | >,
|
1402 1366 | >,
|
1403 1367 | ) -> Self {
|
1404 1368 | self.http_date_list = input.map(|v| v.into());
|
1405 1369 | self
|
1406 1370 | }
|
1407 1371 | #[allow(missing_docs)] // documentation missing in model
|
1408 1372 | pub fn enum_list(mut self, input: ::std::option::Option<crate::model::FooEnumSet>) -> Self {
|
1409 - | self.enum_list = input.map(
|
1410 - | #[allow(clippy::redundant_closure)]
|
1411 - | |v| crate::constrained::MaybeConstrained::Constrained(v),
|
1412 - | );
|
1373 + | self.enum_list = input.map(crate::constrained::MaybeConstrained::Constrained);
|
1413 1374 | self
|
1414 1375 | }
|
1415 1376 | #[allow(missing_docs)] // documentation missing in model
|
1416 1377 | pub(crate) fn set_enum_list(
|
1417 1378 | mut self,
|
1418 1379 | input: Option<
|
1419 1380 | impl ::std::convert::Into<
|
1420 1381 | crate::constrained::MaybeConstrained<crate::model::FooEnumSet>,
|
1421 1382 | >,
|
1422 1383 | >,
|
1423 1384 | ) -> Self {
|
1424 1385 | self.enum_list = input.map(|v| v.into());
|
1425 1386 | self
|
1426 1387 | }
|
1427 1388 | #[allow(missing_docs)] // documentation missing in model
|
1428 1389 | pub fn int_enum_list(
|
1429 1390 | mut self,
|
1430 1391 | input: ::std::option::Option<crate::model::IntegerEnumSet>,
|
1431 1392 | ) -> Self {
|
1432 - | self.int_enum_list = input.map(
|
1433 - | #[allow(clippy::redundant_closure)]
|
1434 - | |v| crate::constrained::MaybeConstrained::Constrained(v),
|
1435 - | );
|
1393 + | self.int_enum_list = input.map(crate::constrained::MaybeConstrained::Constrained);
|
1436 1394 | self
|
1437 1395 | }
|
1438 1396 | #[allow(missing_docs)] // documentation missing in model
|
1439 1397 | pub(crate) fn set_int_enum_list(
|
1440 1398 | mut self,
|
1441 1399 | input: Option<
|
1442 1400 | impl ::std::convert::Into<
|
1443 1401 | crate::constrained::MaybeConstrained<crate::model::IntegerEnumSet>,
|
1444 1402 | >,
|
1445 1403 | >,
|
1446 1404 | ) -> Self {
|
1447 1405 | self.int_enum_list = input.map(|v| v.into());
|
1448 1406 | self
|
1449 1407 | }
|
1450 1408 | #[allow(missing_docs)] // documentation missing in model
|
1451 1409 | pub fn list_list(mut self, input: ::std::option::Option<crate::model::ListSet>) -> Self {
|
1452 - | self.list_list = input.map(
|
1453 - | #[allow(clippy::redundant_closure)]
|
1454 - | |v| crate::constrained::MaybeConstrained::Constrained(v),
|
1455 - | );
|
1410 + | self.list_list = input.map(crate::constrained::MaybeConstrained::Constrained);
|
1456 1411 | self
|
1457 1412 | }
|
1458 1413 | #[allow(missing_docs)] // documentation missing in model
|
1459 1414 | pub(crate) fn set_list_list(
|
1460 1415 | mut self,
|
1461 1416 | input: Option<
|
1462 1417 | impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::model::ListSet>>,
|
1463 1418 | >,
|
1464 1419 | ) -> Self {
|
1465 1420 | self.list_list = input.map(|v| v.into());
|
1466 1421 | self
|
1467 1422 | }
|
1468 1423 | #[allow(missing_docs)] // documentation missing in model
|
1469 1424 | pub fn structure_list(
|
1470 1425 | mut self,
|
1471 1426 | input: ::std::option::Option<crate::model::StructureSet>,
|
1472 1427 | ) -> Self {
|
1473 - | self.structure_list = input.map(
|
1474 - | #[allow(clippy::redundant_closure)]
|
1475 - | |v| crate::constrained::MaybeConstrained::Constrained(v),
|
1476 - | );
|
1428 + | self.structure_list = input.map(crate::constrained::MaybeConstrained::Constrained);
|
1477 1429 | self
|
1478 1430 | }
|
1479 1431 | #[allow(missing_docs)] // documentation missing in model
|
1480 1432 | pub(crate) fn set_structure_list(
|
1481 1433 | mut self,
|
1482 1434 | input: Option<
|
1483 1435 | impl ::std::convert::Into<
|
1484 1436 | crate::constrained::MaybeConstrained<crate::model::StructureSet>,
|
1485 1437 | >,
|
1486 1438 | >,
|
1487 1439 | ) -> Self {
|
1488 1440 | self.structure_list = input.map(|v| v.into());
|
1489 1441 | self
|
1490 1442 | }
|
1491 1443 | #[allow(missing_docs)] // documentation missing in model
|
1492 1444 | pub fn structure_list_with_no_key(
|
1493 1445 | mut self,
|
1494 1446 | input: ::std::option::Option<crate::model::StructureSetWithNoKey>,
|
1495 1447 | ) -> Self {
|
1496 - | self.structure_list_with_no_key = input.map(
|
1497 - | #[allow(clippy::redundant_closure)]
|
1498 - | |v| crate::constrained::MaybeConstrained::Constrained(v),
|
1499 - | );
|
1448 + | self.structure_list_with_no_key =
|
1449 + | input.map(crate::constrained::MaybeConstrained::Constrained);
|
1500 1450 | self
|
1501 1451 | }
|
1502 1452 | #[allow(missing_docs)] // documentation missing in model
|
1503 1453 | pub(crate) fn set_structure_list_with_no_key(
|
1504 1454 | mut self,
|
1505 1455 | input: Option<
|
1506 1456 | impl ::std::convert::Into<
|
1507 1457 | crate::constrained::MaybeConstrained<crate::model::StructureSetWithNoKey>,
|
1508 1458 | >,
|
1509 1459 | >,
|
1510 1460 | ) -> Self {
|
1511 1461 | self.structure_list_with_no_key = input.map(|v| v.into());
|
1512 1462 | self
|
1513 1463 | }
|
1514 1464 | #[allow(missing_docs)] // documentation missing in model
|
1515 1465 | pub fn union_list(mut self, input: ::std::option::Option<crate::model::UnionSet>) -> Self {
|
1516 - | self.union_list = input.map(
|
1517 - | #[allow(clippy::redundant_closure)]
|
1518 - | |v| crate::constrained::MaybeConstrained::Constrained(v),
|
1519 - | );
|
1466 + | self.union_list = input.map(crate::constrained::MaybeConstrained::Constrained);
|
1520 1467 | self
|
1521 1468 | }
|
1522 1469 | #[allow(missing_docs)] // documentation missing in model
|
1523 1470 | pub(crate) fn set_union_list(
|
1524 1471 | mut self,
|
1525 1472 | input: Option<
|
1526 1473 | impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::model::UnionSet>>,
|
1527 1474 | >,
|
1528 1475 | ) -> Self {
|
1529 1476 | self.union_list = input.map(|v| v.into());
|
2030 1977 | pub(crate) float: ::std::option::Option<f32>,
|
2031 1978 | pub(crate) min_float: ::std::option::Option<f32>,
|
2032 1979 | pub(crate) max_float: ::std::option::Option<f32>,
|
2033 1980 | }
|
2034 1981 | impl Builder {
|
2035 1982 | #[allow(missing_docs)] // documentation missing in model
|
2036 1983 | pub fn byte(
|
2037 1984 | mut self,
|
2038 1985 | input: ::std::option::Option<crate::input::malformed_range_override_input::Byte>,
|
2039 1986 | ) -> Self {
|
2040 - | self.byte = input.map(
|
2041 - | #[allow(clippy::redundant_closure)]
|
2042 - | |v| crate::constrained::MaybeConstrained::Constrained(v),
|
2043 - | );
|
1987 + | self.byte = input.map(crate::constrained::MaybeConstrained::Constrained);
|
2044 1988 | self
|
2045 1989 | }
|
2046 1990 | #[allow(missing_docs)] // documentation missing in model
|
2047 1991 | pub(crate) fn set_byte(
|
2048 1992 | mut self,
|
2049 1993 | input: Option<
|
2050 1994 | impl ::std::convert::Into<
|
2051 1995 | crate::constrained::MaybeConstrained<
|
2052 1996 | crate::input::malformed_range_override_input::Byte,
|
2053 1997 | >,
|
2054 1998 | >,
|
2055 1999 | >,
|
2056 2000 | ) -> Self {
|
2057 2001 | self.byte = input.map(|v| v.into());
|
2058 2002 | self
|
2059 2003 | }
|
2060 2004 | #[allow(missing_docs)] // documentation missing in model
|
2061 2005 | pub fn min_byte(
|
2062 2006 | mut self,
|
2063 2007 | input: ::std::option::Option<crate::input::malformed_range_override_input::MinByte>,
|
2064 2008 | ) -> Self {
|
2065 - | self.min_byte = input.map(
|
2066 - | #[allow(clippy::redundant_closure)]
|
2067 - | |v| crate::constrained::MaybeConstrained::Constrained(v),
|
2068 - | );
|
2009 + | self.min_byte = input.map(crate::constrained::MaybeConstrained::Constrained);
|
2069 2010 | self
|
2070 2011 | }
|
2071 2012 | #[allow(missing_docs)] // documentation missing in model
|
2072 2013 | pub(crate) fn set_min_byte(
|
2073 2014 | mut self,
|
2074 2015 | input: Option<
|
2075 2016 | impl ::std::convert::Into<
|
2076 2017 | crate::constrained::MaybeConstrained<
|
2077 2018 | crate::input::malformed_range_override_input::MinByte,
|
2078 2019 | >,
|
2079 2020 | >,
|
2080 2021 | >,
|
2081 2022 | ) -> Self {
|
2082 2023 | self.min_byte = input.map(|v| v.into());
|
2083 2024 | self
|
2084 2025 | }
|
2085 2026 | #[allow(missing_docs)] // documentation missing in model
|
2086 2027 | pub fn max_byte(
|
2087 2028 | mut self,
|
2088 2029 | input: ::std::option::Option<crate::input::malformed_range_override_input::MaxByte>,
|
2089 2030 | ) -> Self {
|
2090 - | self.max_byte = input.map(
|
2091 - | #[allow(clippy::redundant_closure)]
|
2092 - | |v| crate::constrained::MaybeConstrained::Constrained(v),
|
2093 - | );
|
2031 + | self.max_byte = input.map(crate::constrained::MaybeConstrained::Constrained);
|
2094 2032 | self
|
2095 2033 | }
|
2096 2034 | #[allow(missing_docs)] // documentation missing in model
|
2097 2035 | pub(crate) fn set_max_byte(
|
2098 2036 | mut self,
|
2099 2037 | input: Option<
|
2100 2038 | impl ::std::convert::Into<
|
2101 2039 | crate::constrained::MaybeConstrained<
|
2102 2040 | crate::input::malformed_range_override_input::MaxByte,
|
2103 2041 | >,
|
2104 2042 | >,
|
2105 2043 | >,
|
2106 2044 | ) -> Self {
|
2107 2045 | self.max_byte = input.map(|v| v.into());
|
2108 2046 | self
|
2109 2047 | }
|
2110 2048 | #[allow(missing_docs)] // documentation missing in model
|
2111 2049 | pub fn short(
|
2112 2050 | mut self,
|
2113 2051 | input: ::std::option::Option<crate::input::malformed_range_override_input::Short>,
|
2114 2052 | ) -> Self {
|
2115 - | self.short = input.map(
|
2116 - | #[allow(clippy::redundant_closure)]
|
2117 - | |v| crate::constrained::MaybeConstrained::Constrained(v),
|
2118 - | );
|
2053 + | self.short = input.map(crate::constrained::MaybeConstrained::Constrained);
|
2119 2054 | self
|
2120 2055 | }
|
2121 2056 | #[allow(missing_docs)] // documentation missing in model
|
2122 2057 | pub(crate) fn set_short(
|
2123 2058 | mut self,
|
2124 2059 | input: Option<
|
2125 2060 | impl ::std::convert::Into<
|
2126 2061 | crate::constrained::MaybeConstrained<
|
2127 2062 | crate::input::malformed_range_override_input::Short,
|
2128 2063 | >,
|
2129 2064 | >,
|
2130 2065 | >,
|
2131 2066 | ) -> Self {
|
2132 2067 | self.short = input.map(|v| v.into());
|
2133 2068 | self
|
2134 2069 | }
|
2135 2070 | #[allow(missing_docs)] // documentation missing in model
|
2136 2071 | pub fn min_short(
|
2137 2072 | mut self,
|
2138 2073 | input: ::std::option::Option<crate::input::malformed_range_override_input::MinShort>,
|
2139 2074 | ) -> Self {
|
2140 - | self.min_short = input.map(
|
2141 - | #[allow(clippy::redundant_closure)]
|
2142 - | |v| crate::constrained::MaybeConstrained::Constrained(v),
|
2143 - | );
|
2075 + | self.min_short = input.map(crate::constrained::MaybeConstrained::Constrained);
|
2144 2076 | self
|
2145 2077 | }
|
2146 2078 | #[allow(missing_docs)] // documentation missing in model
|
2147 2079 | pub(crate) fn set_min_short(
|
2148 2080 | mut self,
|
2149 2081 | input: Option<
|
2150 2082 | impl ::std::convert::Into<
|
2151 2083 | crate::constrained::MaybeConstrained<
|
2152 2084 | crate::input::malformed_range_override_input::MinShort,
|
2153 2085 | >,
|
2154 2086 | >,
|
2155 2087 | >,
|
2156 2088 | ) -> Self {
|
2157 2089 | self.min_short = input.map(|v| v.into());
|
2158 2090 | self
|
2159 2091 | }
|
2160 2092 | #[allow(missing_docs)] // documentation missing in model
|
2161 2093 | pub fn max_short(
|
2162 2094 | mut self,
|
2163 2095 | input: ::std::option::Option<crate::input::malformed_range_override_input::MaxShort>,
|
2164 2096 | ) -> Self {
|
2165 - | self.max_short = input.map(
|
2166 - | #[allow(clippy::redundant_closure)]
|
2167 - | |v| crate::constrained::MaybeConstrained::Constrained(v),
|
2168 - | );
|
2097 + | self.max_short = input.map(crate::constrained::MaybeConstrained::Constrained);
|
2169 2098 | self
|
2170 2099 | }
|
2171 2100 | #[allow(missing_docs)] // documentation missing in model
|
2172 2101 | pub(crate) fn set_max_short(
|
2173 2102 | mut self,
|
2174 2103 | input: Option<
|
2175 2104 | impl ::std::convert::Into<
|
2176 2105 | crate::constrained::MaybeConstrained<
|
2177 2106 | crate::input::malformed_range_override_input::MaxShort,
|
2178 2107 | >,
|
2179 2108 | >,
|
2180 2109 | >,
|
2181 2110 | ) -> Self {
|
2182 2111 | self.max_short = input.map(|v| v.into());
|
2183 2112 | self
|
2184 2113 | }
|
2185 2114 | #[allow(missing_docs)] // documentation missing in model
|
2186 2115 | pub fn integer(
|
2187 2116 | mut self,
|
2188 2117 | input: ::std::option::Option<crate::input::malformed_range_override_input::Integer>,
|
2189 2118 | ) -> Self {
|
2190 - | self.integer = input.map(
|
2191 - | #[allow(clippy::redundant_closure)]
|
2192 - | |v| crate::constrained::MaybeConstrained::Constrained(v),
|
2193 - | );
|
2119 + | self.integer = input.map(crate::constrained::MaybeConstrained::Constrained);
|
2194 2120 | self
|
2195 2121 | }
|
2196 2122 | #[allow(missing_docs)] // documentation missing in model
|
2197 2123 | pub(crate) fn set_integer(
|
2198 2124 | mut self,
|
2199 2125 | input: Option<
|
2200 2126 | impl ::std::convert::Into<
|
2201 2127 | crate::constrained::MaybeConstrained<
|
2202 2128 | crate::input::malformed_range_override_input::Integer,
|
2203 2129 | >,
|
2204 2130 | >,
|
2205 2131 | >,
|
2206 2132 | ) -> Self {
|
2207 2133 | self.integer = input.map(|v| v.into());
|
2208 2134 | self
|
2209 2135 | }
|
2210 2136 | #[allow(missing_docs)] // documentation missing in model
|
2211 2137 | pub fn min_integer(
|
2212 2138 | mut self,
|
2213 2139 | input: ::std::option::Option<crate::input::malformed_range_override_input::MinInteger>,
|
2214 2140 | ) -> Self {
|
2215 - | self.min_integer = input.map(
|
2216 - | #[allow(clippy::redundant_closure)]
|
2217 - | |v| crate::constrained::MaybeConstrained::Constrained(v),
|
2218 - | );
|
2141 + | self.min_integer = input.map(crate::constrained::MaybeConstrained::Constrained);
|
2219 2142 | self
|
2220 2143 | }
|
2221 2144 | #[allow(missing_docs)] // documentation missing in model
|
2222 2145 | pub(crate) fn set_min_integer(
|
2223 2146 | mut self,
|
2224 2147 | input: Option<
|
2225 2148 | impl ::std::convert::Into<
|
2226 2149 | crate::constrained::MaybeConstrained<
|
2227 2150 | crate::input::malformed_range_override_input::MinInteger,
|
2228 2151 | >,
|
2229 2152 | >,
|
2230 2153 | >,
|
2231 2154 | ) -> Self {
|
2232 2155 | self.min_integer = input.map(|v| v.into());
|
2233 2156 | self
|
2234 2157 | }
|
2235 2158 | #[allow(missing_docs)] // documentation missing in model
|
2236 2159 | pub fn max_integer(
|
2237 2160 | mut self,
|
2238 2161 | input: ::std::option::Option<crate::input::malformed_range_override_input::MaxInteger>,
|
2239 2162 | ) -> Self {
|
2240 - | self.max_integer = input.map(
|
2241 - | #[allow(clippy::redundant_closure)]
|
2242 - | |v| crate::constrained::MaybeConstrained::Constrained(v),
|
2243 - | );
|
2163 + | self.max_integer = input.map(crate::constrained::MaybeConstrained::Constrained);
|
2244 2164 | self
|
2245 2165 | }
|
2246 2166 | #[allow(missing_docs)] // documentation missing in model
|
2247 2167 | pub(crate) fn set_max_integer(
|
2248 2168 | mut self,
|
2249 2169 | input: Option<
|
2250 2170 | impl ::std::convert::Into<
|
2251 2171 | crate::constrained::MaybeConstrained<
|
2252 2172 | crate::input::malformed_range_override_input::MaxInteger,
|
2253 2173 | >,
|
2254 2174 | >,
|
2255 2175 | >,
|
2256 2176 | ) -> Self {
|
2257 2177 | self.max_integer = input.map(|v| v.into());
|
2258 2178 | self
|
2259 2179 | }
|
2260 2180 | #[allow(missing_docs)] // documentation missing in model
|
2261 2181 | pub fn long(
|
2262 2182 | mut self,
|
2263 2183 | input: ::std::option::Option<crate::input::malformed_range_override_input::Long>,
|
2264 2184 | ) -> Self {
|
2265 - | self.long = input.map(
|
2266 - | #[allow(clippy::redundant_closure)]
|
2267 - | |v| crate::constrained::MaybeConstrained::Constrained(v),
|
2268 - | );
|
2185 + | self.long = input.map(crate::constrained::MaybeConstrained::Constrained);
|
2269 2186 | self
|
2270 2187 | }
|
2271 2188 | #[allow(missing_docs)] // documentation missing in model
|
2272 2189 | pub(crate) fn set_long(
|
2273 2190 | mut self,
|
2274 2191 | input: Option<
|
2275 2192 | impl ::std::convert::Into<
|
2276 2193 | crate::constrained::MaybeConstrained<
|
2277 2194 | crate::input::malformed_range_override_input::Long,
|
2278 2195 | >,
|
2279 2196 | >,
|
2280 2197 | >,
|
2281 2198 | ) -> Self {
|
2282 2199 | self.long = input.map(|v| v.into());
|
2283 2200 | self
|
2284 2201 | }
|
2285 2202 | #[allow(missing_docs)] // documentation missing in model
|
2286 2203 | pub fn min_long(
|
2287 2204 | mut self,
|
2288 2205 | input: ::std::option::Option<crate::input::malformed_range_override_input::MinLong>,
|
2289 2206 | ) -> Self {
|
2290 - | self.min_long = input.map(
|
2291 - | #[allow(clippy::redundant_closure)]
|
2292 - | |v| crate::constrained::MaybeConstrained::Constrained(v),
|
2293 - | );
|
2207 + | self.min_long = input.map(crate::constrained::MaybeConstrained::Constrained);
|
2294 2208 | self
|
2295 2209 | }
|
2296 2210 | #[allow(missing_docs)] // documentation missing in model
|
2297 2211 | pub(crate) fn set_min_long(
|
2298 2212 | mut self,
|
2299 2213 | input: Option<
|
2300 2214 | impl ::std::convert::Into<
|
2301 2215 | crate::constrained::MaybeConstrained<
|
2302 2216 | crate::input::malformed_range_override_input::MinLong,
|
2303 2217 | >,
|
2304 2218 | >,
|
2305 2219 | >,
|
2306 2220 | ) -> Self {
|
2307 2221 | self.min_long = input.map(|v| v.into());
|
2308 2222 | self
|
2309 2223 | }
|
2310 2224 | #[allow(missing_docs)] // documentation missing in model
|
2311 2225 | pub fn max_long(
|
2312 2226 | mut self,
|
2313 2227 | input: ::std::option::Option<crate::input::malformed_range_override_input::MaxLong>,
|
2314 2228 | ) -> Self {
|
2315 - | self.max_long = input.map(
|
2316 - | #[allow(clippy::redundant_closure)]
|
2317 - | |v| crate::constrained::MaybeConstrained::Constrained(v),
|
2318 - | );
|
2229 + | self.max_long = input.map(crate::constrained::MaybeConstrained::Constrained);
|
2319 2230 | self
|
2320 2231 | }
|
2321 2232 | #[allow(missing_docs)] // documentation missing in model
|
2322 2233 | pub(crate) fn set_max_long(
|
2323 2234 | mut self,
|
2324 2235 | input: Option<
|
2325 2236 | impl ::std::convert::Into<
|
2326 2237 | crate::constrained::MaybeConstrained<
|
2327 2238 | crate::input::malformed_range_override_input::MaxLong,
|
2328 2239 | >,
|
3923 3834 | ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::MinLong>>,
|
3924 3835 | pub(crate) max_long:
|
3925 3836 | ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::MaxLong>>,
|
3926 3837 | pub(crate) float: ::std::option::Option<f32>,
|
3927 3838 | pub(crate) min_float: ::std::option::Option<f32>,
|
3928 3839 | pub(crate) max_float: ::std::option::Option<f32>,
|
3929 3840 | }
|
3930 3841 | impl Builder {
|
3931 3842 | #[allow(missing_docs)] // documentation missing in model
|
3932 3843 | pub fn byte(mut self, input: ::std::option::Option<crate::model::RangeByte>) -> Self {
|
3933 - | self.byte = input.map(
|
3934 - | #[allow(clippy::redundant_closure)]
|
3935 - | |v| crate::constrained::MaybeConstrained::Constrained(v),
|
3936 - | );
|
3844 + | self.byte = input.map(crate::constrained::MaybeConstrained::Constrained);
|
3937 3845 | self
|
3938 3846 | }
|
3939 3847 | #[allow(missing_docs)] // documentation missing in model
|
3940 3848 | pub(crate) fn set_byte(
|
3941 3849 | mut self,
|
3942 3850 | input: Option<
|
3943 3851 | impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::model::RangeByte>>,
|
3944 3852 | >,
|
3945 3853 | ) -> Self {
|
3946 3854 | self.byte = input.map(|v| v.into());
|
3947 3855 | self
|
3948 3856 | }
|
3949 3857 | #[allow(missing_docs)] // documentation missing in model
|
3950 3858 | pub fn min_byte(mut self, input: ::std::option::Option<crate::model::MinByte>) -> Self {
|
3951 - | self.min_byte = input.map(
|
3952 - | #[allow(clippy::redundant_closure)]
|
3953 - | |v| crate::constrained::MaybeConstrained::Constrained(v),
|
3954 - | );
|
3859 + | self.min_byte = input.map(crate::constrained::MaybeConstrained::Constrained);
|
3955 3860 | self
|
3956 3861 | }
|
3957 3862 | #[allow(missing_docs)] // documentation missing in model
|
3958 3863 | pub(crate) fn set_min_byte(
|
3959 3864 | mut self,
|
3960 3865 | input: Option<
|
3961 3866 | impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::model::MinByte>>,
|
3962 3867 | >,
|
3963 3868 | ) -> Self {
|
3964 3869 | self.min_byte = input.map(|v| v.into());
|
3965 3870 | self
|
3966 3871 | }
|
3967 3872 | #[allow(missing_docs)] // documentation missing in model
|
3968 3873 | pub fn max_byte(mut self, input: ::std::option::Option<crate::model::MaxByte>) -> Self {
|
3969 - | self.max_byte = input.map(
|
3970 - | #[allow(clippy::redundant_closure)]
|
3971 - | |v| crate::constrained::MaybeConstrained::Constrained(v),
|
3972 - | );
|
3874 + | self.max_byte = input.map(crate::constrained::MaybeConstrained::Constrained);
|
3973 3875 | self
|
3974 3876 | }
|
3975 3877 | #[allow(missing_docs)] // documentation missing in model
|
3976 3878 | pub(crate) fn set_max_byte(
|
3977 3879 | mut self,
|
3978 3880 | input: Option<
|
3979 3881 | impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::model::MaxByte>>,
|
3980 3882 | >,
|
3981 3883 | ) -> Self {
|
3982 3884 | self.max_byte = input.map(|v| v.into());
|
3983 3885 | self
|
3984 3886 | }
|
3985 3887 | #[allow(missing_docs)] // documentation missing in model
|
3986 3888 | pub fn short(mut self, input: ::std::option::Option<crate::model::RangeShort>) -> Self {
|
3987 - | self.short = input.map(
|
3988 - | #[allow(clippy::redundant_closure)]
|
3989 - | |v| crate::constrained::MaybeConstrained::Constrained(v),
|
3990 - | );
|
3889 + | self.short = input.map(crate::constrained::MaybeConstrained::Constrained);
|
3991 3890 | self
|
3992 3891 | }
|
3993 3892 | #[allow(missing_docs)] // documentation missing in model
|
3994 3893 | pub(crate) fn set_short(
|
3995 3894 | mut self,
|
3996 3895 | input: Option<
|
3997 3896 | impl ::std::convert::Into<
|
3998 3897 | crate::constrained::MaybeConstrained<crate::model::RangeShort>,
|
3999 3898 | >,
|
4000 3899 | >,
|
4001 3900 | ) -> Self {
|
4002 3901 | self.short = input.map(|v| v.into());
|
4003 3902 | self
|
4004 3903 | }
|
4005 3904 | #[allow(missing_docs)] // documentation missing in model
|
4006 3905 | pub fn min_short(mut self, input: ::std::option::Option<crate::model::MinShort>) -> Self {
|
4007 - | self.min_short = input.map(
|
4008 - | #[allow(clippy::redundant_closure)]
|
4009 - | |v| crate::constrained::MaybeConstrained::Constrained(v),
|
4010 - | );
|
3906 + | self.min_short = input.map(crate::constrained::MaybeConstrained::Constrained);
|
4011 3907 | self
|
4012 3908 | }
|
4013 3909 | #[allow(missing_docs)] // documentation missing in model
|
4014 3910 | pub(crate) fn set_min_short(
|
4015 3911 | mut self,
|
4016 3912 | input: Option<
|
4017 3913 | impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::model::MinShort>>,
|
4018 3914 | >,
|
4019 3915 | ) -> Self {
|
4020 3916 | self.min_short = input.map(|v| v.into());
|
4021 3917 | self
|
4022 3918 | }
|
4023 3919 | #[allow(missing_docs)] // documentation missing in model
|
4024 3920 | pub fn max_short(mut self, input: ::std::option::Option<crate::model::MaxShort>) -> Self {
|
4025 - | self.max_short = input.map(
|
4026 - | #[allow(clippy::redundant_closure)]
|
4027 - | |v| crate::constrained::MaybeConstrained::Constrained(v),
|
4028 - | );
|
3921 + | self.max_short = input.map(crate::constrained::MaybeConstrained::Constrained);
|
4029 3922 | self
|
4030 3923 | }
|
4031 3924 | #[allow(missing_docs)] // documentation missing in model
|
4032 3925 | pub(crate) fn set_max_short(
|
4033 3926 | mut self,
|
4034 3927 | input: Option<
|
4035 3928 | impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::model::MaxShort>>,
|
4036 3929 | >,
|
4037 3930 | ) -> Self {
|
4038 3931 | self.max_short = input.map(|v| v.into());
|
4039 3932 | self
|
4040 3933 | }
|
4041 3934 | #[allow(missing_docs)] // documentation missing in model
|
4042 3935 | pub fn integer(mut self, input: ::std::option::Option<crate::model::RangeInteger>) -> Self {
|
4043 - | self.integer = input.map(
|
4044 - | #[allow(clippy::redundant_closure)]
|
4045 - | |v| crate::constrained::MaybeConstrained::Constrained(v),
|
4046 - | );
|
3936 + | self.integer = input.map(crate::constrained::MaybeConstrained::Constrained);
|
4047 3937 | self
|
4048 3938 | }
|
4049 3939 | #[allow(missing_docs)] // documentation missing in model
|
4050 3940 | pub(crate) fn set_integer(
|
4051 3941 | mut self,
|
4052 3942 | input: Option<
|
4053 3943 | impl ::std::convert::Into<
|
4054 3944 | crate::constrained::MaybeConstrained<crate::model::RangeInteger>,
|
4055 3945 | >,
|
4056 3946 | >,
|
4057 3947 | ) -> Self {
|
4058 3948 | self.integer = input.map(|v| v.into());
|
4059 3949 | self
|
4060 3950 | }
|
4061 3951 | #[allow(missing_docs)] // documentation missing in model
|
4062 3952 | pub fn min_integer(
|
4063 3953 | mut self,
|
4064 3954 | input: ::std::option::Option<crate::model::MinInteger>,
|
4065 3955 | ) -> Self {
|
4066 - | self.min_integer = input.map(
|
4067 - | #[allow(clippy::redundant_closure)]
|
4068 - | |v| crate::constrained::MaybeConstrained::Constrained(v),
|
4069 - | );
|
3956 + | self.min_integer = input.map(crate::constrained::MaybeConstrained::Constrained);
|
4070 3957 | self
|
4071 3958 | }
|
4072 3959 | #[allow(missing_docs)] // documentation missing in model
|
4073 3960 | pub(crate) fn set_min_integer(
|
4074 3961 | mut self,
|
4075 3962 | input: Option<
|
4076 3963 | impl ::std::convert::Into<
|
4077 3964 | crate::constrained::MaybeConstrained<crate::model::MinInteger>,
|
4078 3965 | >,
|
4079 3966 | >,
|
4080 3967 | ) -> Self {
|
4081 3968 | self.min_integer = input.map(|v| v.into());
|
4082 3969 | self
|
4083 3970 | }
|
4084 3971 | #[allow(missing_docs)] // documentation missing in model
|
4085 3972 | pub fn max_integer(
|
4086 3973 | mut self,
|
4087 3974 | input: ::std::option::Option<crate::model::MaxInteger>,
|
4088 3975 | ) -> Self {
|
4089 - | self.max_integer = input.map(
|
4090 - | #[allow(clippy::redundant_closure)]
|
4091 - | |v| crate::constrained::MaybeConstrained::Constrained(v),
|
4092 - | );
|
3976 + | self.max_integer = input.map(crate::constrained::MaybeConstrained::Constrained);
|
4093 3977 | self
|
4094 3978 | }
|
4095 3979 | #[allow(missing_docs)] // documentation missing in model
|
4096 3980 | pub(crate) fn set_max_integer(
|
4097 3981 | mut self,
|
4098 3982 | input: Option<
|
4099 3983 | impl ::std::convert::Into<
|
4100 3984 | crate::constrained::MaybeConstrained<crate::model::MaxInteger>,
|
4101 3985 | >,
|
4102 3986 | >,
|
4103 3987 | ) -> Self {
|
4104 3988 | self.max_integer = input.map(|v| v.into());
|
4105 3989 | self
|
4106 3990 | }
|
4107 3991 | #[allow(missing_docs)] // documentation missing in model
|
4108 3992 | pub fn long(mut self, input: ::std::option::Option<crate::model::RangeLong>) -> Self {
|
4109 - | self.long = input.map(
|
4110 - | #[allow(clippy::redundant_closure)]
|
4111 - | |v| crate::constrained::MaybeConstrained::Constrained(v),
|
4112 - | );
|
3993 + | self.long = input.map(crate::constrained::MaybeConstrained::Constrained);
|
4113 3994 | self
|
4114 3995 | }
|
4115 3996 | #[allow(missing_docs)] // documentation missing in model
|
4116 3997 | pub(crate) fn set_long(
|
4117 3998 | mut self,
|
4118 3999 | input: Option<
|
4119 4000 | impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::model::RangeLong>>,
|
4120 4001 | >,
|
4121 4002 | ) -> Self {
|
4122 4003 | self.long = input.map(|v| v.into());
|
4123 4004 | self
|
4124 4005 | }
|
4125 4006 | #[allow(missing_docs)] // documentation missing in model
|
4126 4007 | pub fn min_long(mut self, input: ::std::option::Option<crate::model::MinLong>) -> Self {
|
4127 - | self.min_long = input.map(
|
4128 - | #[allow(clippy::redundant_closure)]
|
4129 - | |v| crate::constrained::MaybeConstrained::Constrained(v),
|
4130 - | );
|
4008 + | self.min_long = input.map(crate::constrained::MaybeConstrained::Constrained);
|
4131 4009 | self
|
4132 4010 | }
|
4133 4011 | #[allow(missing_docs)] // documentation missing in model
|
4134 4012 | pub(crate) fn set_min_long(
|
4135 4013 | mut self,
|
4136 4014 | input: Option<
|
4137 4015 | impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::model::MinLong>>,
|
4138 4016 | >,
|
4139 4017 | ) -> Self {
|
4140 4018 | self.min_long = input.map(|v| v.into());
|
4141 4019 | self
|
4142 4020 | }
|
4143 4021 | #[allow(missing_docs)] // documentation missing in model
|
4144 4022 | pub fn max_long(mut self, input: ::std::option::Option<crate::model::MaxLong>) -> Self {
|
4145 - | self.max_long = input.map(
|
4146 - | #[allow(clippy::redundant_closure)]
|
4147 - | |v| crate::constrained::MaybeConstrained::Constrained(v),
|
4148 - | );
|
4023 + | self.max_long = input.map(crate::constrained::MaybeConstrained::Constrained);
|
4149 4024 | self
|
4150 4025 | }
|
4151 4026 | #[allow(missing_docs)] // documentation missing in model
|
4152 4027 | pub(crate) fn set_max_long(
|
4153 4028 | mut self,
|
4154 4029 | input: Option<
|
4155 4030 | impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::model::MaxLong>>,
|
4156 4031 | >,
|
4157 4032 | ) -> Self {
|
4158 4033 | self.max_long = input.map(|v| v.into());
|
5228 5085 | crate::input::malformed_length_override_input::Map,
|
5229 5086 | >,
|
5230 5087 | >,
|
5231 5088 | }
|
5232 5089 | impl Builder {
|
5233 5090 | #[allow(missing_docs)] // documentation missing in model
|
5234 5091 | pub fn blob(
|
5235 5092 | mut self,
|
5236 5093 | input: ::std::option::Option<crate::input::malformed_length_override_input::Blob>,
|
5237 5094 | ) -> Self {
|
5238 - | self.blob = input.map(
|
5239 - | #[allow(clippy::redundant_closure)]
|
5240 - | |v| crate::constrained::MaybeConstrained::Constrained(v),
|
5241 - | );
|
5095 + | self.blob = input.map(crate::constrained::MaybeConstrained::Constrained);
|
5242 5096 | self
|
5243 5097 | }
|
5244 5098 | #[allow(missing_docs)] // documentation missing in model
|
5245 5099 | pub(crate) fn set_blob(
|
5246 5100 | mut self,
|
5247 5101 | input: Option<
|
5248 5102 | impl ::std::convert::Into<
|
5249 5103 | crate::constrained::MaybeConstrained<
|
5250 5104 | crate::input::malformed_length_override_input::Blob,
|
5251 5105 | >,
|
5252 5106 | >,
|
5253 5107 | >,
|
5254 5108 | ) -> Self {
|
5255 5109 | self.blob = input.map(|v| v.into());
|
5256 5110 | self
|
5257 5111 | }
|
5258 5112 | #[allow(missing_docs)] // documentation missing in model
|
5259 5113 | pub fn string(
|
5260 5114 | mut self,
|
5261 5115 | input: ::std::option::Option<crate::input::malformed_length_override_input::String>,
|
5262 5116 | ) -> Self {
|
5263 - | self.string = input.map(
|
5264 - | #[allow(clippy::redundant_closure)]
|
5265 - | |v| crate::constrained::MaybeConstrained::Constrained(v),
|
5266 - | );
|
5117 + | self.string = input.map(crate::constrained::MaybeConstrained::Constrained);
|
5267 5118 | self
|
5268 5119 | }
|
5269 5120 | #[allow(missing_docs)] // documentation missing in model
|
5270 5121 | pub(crate) fn set_string(
|
5271 5122 | mut self,
|
5272 5123 | input: Option<
|
5273 5124 | impl ::std::convert::Into<
|
5274 5125 | crate::constrained::MaybeConstrained<
|
5275 5126 | crate::input::malformed_length_override_input::String,
|
5276 5127 | >,
|
5277 5128 | >,
|
5278 5129 | >,
|
5279 5130 | ) -> Self {
|
5280 5131 | self.string = input.map(|v| v.into());
|
5281 5132 | self
|
5282 5133 | }
|
5283 5134 | #[allow(missing_docs)] // documentation missing in model
|
5284 5135 | pub fn min_string(
|
5285 5136 | mut self,
|
5286 5137 | input: ::std::option::Option<crate::input::malformed_length_override_input::MinString>,
|
5287 5138 | ) -> Self {
|
5288 - | self.min_string = input.map(
|
5289 - | #[allow(clippy::redundant_closure)]
|
5290 - | |v| crate::constrained::MaybeConstrained::Constrained(v),
|
5291 - | );
|
5139 + | self.min_string = input.map(crate::constrained::MaybeConstrained::Constrained);
|
5292 5140 | self
|
5293 5141 | }
|
5294 5142 | #[allow(missing_docs)] // documentation missing in model
|
5295 5143 | pub(crate) fn set_min_string(
|
5296 5144 | mut self,
|
5297 5145 | input: Option<
|
5298 5146 | impl ::std::convert::Into<
|
5299 5147 | crate::constrained::MaybeConstrained<
|
5300 5148 | crate::input::malformed_length_override_input::MinString,
|
5301 5149 | >,
|
5302 5150 | >,
|
5303 5151 | >,
|
5304 5152 | ) -> Self {
|
5305 5153 | self.min_string = input.map(|v| v.into());
|
5306 5154 | self
|
5307 5155 | }
|
5308 5156 | #[allow(missing_docs)] // documentation missing in model
|
5309 5157 | pub fn max_string(
|
5310 5158 | mut self,
|
5311 5159 | input: ::std::option::Option<crate::input::malformed_length_override_input::MaxString>,
|
5312 5160 | ) -> Self {
|
5313 - | self.max_string = input.map(
|
5314 - | #[allow(clippy::redundant_closure)]
|
5315 - | |v| crate::constrained::MaybeConstrained::Constrained(v),
|
5316 - | );
|
5161 + | self.max_string = input.map(crate::constrained::MaybeConstrained::Constrained);
|
5317 5162 | self
|
5318 5163 | }
|
5319 5164 | #[allow(missing_docs)] // documentation missing in model
|
5320 5165 | pub(crate) fn set_max_string(
|
5321 5166 | mut self,
|
5322 5167 | input: Option<
|
5323 5168 | impl ::std::convert::Into<
|
5324 5169 | crate::constrained::MaybeConstrained<
|
5325 5170 | crate::input::malformed_length_override_input::MaxString,
|
5326 5171 | >,
|
5327 5172 | >,
|
5328 5173 | >,
|
5329 5174 | ) -> Self {
|
5330 5175 | self.max_string = input.map(|v| v.into());
|
5331 5176 | self
|
5332 5177 | }
|
5333 5178 | #[allow(missing_docs)] // documentation missing in model
|
5334 5179 | pub fn list(
|
5335 5180 | mut self,
|
5336 5181 | input: ::std::option::Option<crate::input::malformed_length_override_input::List>,
|
5337 5182 | ) -> Self {
|
5338 - | self.list = input.map(
|
5339 - | #[allow(clippy::redundant_closure)]
|
5340 - | |v| crate::constrained::MaybeConstrained::Constrained(v),
|
5341 - | );
|
5183 + | self.list = input.map(crate::constrained::MaybeConstrained::Constrained);
|
5342 5184 | self
|
5343 5185 | }
|
5344 5186 | #[allow(missing_docs)] // documentation missing in model
|
5345 5187 | pub(crate) fn set_list(
|
5346 5188 | mut self,
|
5347 5189 | input: Option<
|
5348 5190 | impl ::std::convert::Into<
|
5349 5191 | crate::constrained::MaybeConstrained<
|
5350 5192 | crate::input::malformed_length_override_input::List,
|
5351 5193 | >,
|
5352 5194 | >,
|
5353 5195 | >,
|
5354 5196 | ) -> Self {
|
5355 5197 | self.list = input.map(|v| v.into());
|
5356 5198 | self
|
5357 5199 | }
|
5358 5200 | #[allow(missing_docs)] // documentation missing in model
|
5359 5201 | pub fn map(
|
5360 5202 | mut self,
|
5361 5203 | input: ::std::option::Option<crate::input::malformed_length_override_input::Map>,
|
5362 5204 | ) -> Self {
|
5363 - | self.map = input.map(
|
5364 - | #[allow(clippy::redundant_closure)]
|
5365 - | |v| crate::constrained::MaybeConstrained::Constrained(v),
|
5366 - | );
|
5205 + | self.map = input.map(crate::constrained::MaybeConstrained::Constrained);
|
5367 5206 | self
|
5368 5207 | }
|
5369 5208 | #[allow(missing_docs)] // documentation missing in model
|
5370 5209 | pub(crate) fn set_map(
|
5371 5210 | mut self,
|
5372 5211 | input: Option<
|
5373 5212 | impl ::std::convert::Into<
|
5374 5213 | crate::constrained::MaybeConstrained<
|
5375 5214 | crate::input::malformed_length_override_input::Map,
|
5376 5215 | >,
|
6330 6169 | crate::constrained::MaybeConstrained<crate::model::MaxLengthString>,
|
6331 6170 | >,
|
6332 6171 | pub(crate) list:
|
6333 6172 | ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::LengthList>>,
|
6334 6173 | pub(crate) map:
|
6335 6174 | ::std::option::Option<crate::constrained::MaybeConstrained<crate::model::LengthMap>>,
|
6336 6175 | }
|
6337 6176 | impl Builder {
|
6338 6177 | #[allow(missing_docs)] // documentation missing in model
|
6339 6178 | pub fn blob(mut self, input: ::std::option::Option<crate::model::LengthBlob>) -> Self {
|
6340 - | self.blob = input.map(
|
6341 - | #[allow(clippy::redundant_closure)]
|
6342 - | |v| crate::constrained::MaybeConstrained::Constrained(v),
|
6343 - | );
|
6179 + | self.blob = input.map(crate::constrained::MaybeConstrained::Constrained);
|
6344 6180 | self
|
6345 6181 | }
|
6346 6182 | #[allow(missing_docs)] // documentation missing in model
|
6347 6183 | pub(crate) fn set_blob(
|
6348 6184 | mut self,
|
6349 6185 | input: Option<
|
6350 6186 | impl ::std::convert::Into<
|
6351 6187 | crate::constrained::MaybeConstrained<crate::model::LengthBlob>,
|
6352 6188 | >,
|
6353 6189 | >,
|
6354 6190 | ) -> Self {
|
6355 6191 | self.blob = input.map(|v| v.into());
|
6356 6192 | self
|
6357 6193 | }
|
6358 6194 | #[allow(missing_docs)] // documentation missing in model
|
6359 6195 | pub fn string(mut self, input: ::std::option::Option<crate::model::LengthString>) -> Self {
|
6360 - | self.string = input.map(
|
6361 - | #[allow(clippy::redundant_closure)]
|
6362 - | |v| crate::constrained::MaybeConstrained::Constrained(v),
|
6363 - | );
|
6196 + | self.string = input.map(crate::constrained::MaybeConstrained::Constrained);
|
6364 6197 | self
|
6365 6198 | }
|
6366 6199 | #[allow(missing_docs)] // documentation missing in model
|
6367 6200 | pub(crate) fn set_string(
|
6368 6201 | mut self,
|
6369 6202 | input: Option<
|
6370 6203 | impl ::std::convert::Into<
|
6371 6204 | crate::constrained::MaybeConstrained<crate::model::LengthString>,
|
6372 6205 | >,
|
6373 6206 | >,
|
6374 6207 | ) -> Self {
|
6375 6208 | self.string = input.map(|v| v.into());
|
6376 6209 | self
|
6377 6210 | }
|
6378 6211 | #[allow(missing_docs)] // documentation missing in model
|
6379 6212 | pub fn min_string(
|
6380 6213 | mut self,
|
6381 6214 | input: ::std::option::Option<crate::model::MinLengthString>,
|
6382 6215 | ) -> Self {
|
6383 - | self.min_string = input.map(
|
6384 - | #[allow(clippy::redundant_closure)]
|
6385 - | |v| crate::constrained::MaybeConstrained::Constrained(v),
|
6386 - | );
|
6216 + | self.min_string = input.map(crate::constrained::MaybeConstrained::Constrained);
|
6387 6217 | self
|
6388 6218 | }
|
6389 6219 | #[allow(missing_docs)] // documentation missing in model
|
6390 6220 | pub(crate) fn set_min_string(
|
6391 6221 | mut self,
|
6392 6222 | input: Option<
|
6393 6223 | impl ::std::convert::Into<
|
6394 6224 | crate::constrained::MaybeConstrained<crate::model::MinLengthString>,
|
6395 6225 | >,
|
6396 6226 | >,
|
6397 6227 | ) -> Self {
|
6398 6228 | self.min_string = input.map(|v| v.into());
|
6399 6229 | self
|
6400 6230 | }
|
6401 6231 | #[allow(missing_docs)] // documentation missing in model
|
6402 6232 | pub fn max_string(
|
6403 6233 | mut self,
|
6404 6234 | input: ::std::option::Option<crate::model::MaxLengthString>,
|
6405 6235 | ) -> Self {
|
6406 - | self.max_string = input.map(
|
6407 - | #[allow(clippy::redundant_closure)]
|
6408 - | |v| crate::constrained::MaybeConstrained::Constrained(v),
|
6409 - | );
|
6236 + | self.max_string = input.map(crate::constrained::MaybeConstrained::Constrained);
|
6410 6237 | self
|
6411 6238 | }
|
6412 6239 | #[allow(missing_docs)] // documentation missing in model
|
6413 6240 | pub(crate) fn set_max_string(
|
6414 6241 | mut self,
|
6415 6242 | input: Option<
|
6416 6243 | impl ::std::convert::Into<
|
6417 6244 | crate::constrained::MaybeConstrained<crate::model::MaxLengthString>,
|
6418 6245 | >,
|
6419 6246 | >,
|
6420 6247 | ) -> Self {
|
6421 6248 | self.max_string = input.map(|v| v.into());
|
6422 6249 | self
|
6423 6250 | }
|
6424 6251 | #[allow(missing_docs)] // documentation missing in model
|
6425 6252 | pub fn list(mut self, input: ::std::option::Option<crate::model::LengthList>) -> Self {
|
6426 - | self.list = input.map(
|
6427 - | #[allow(clippy::redundant_closure)]
|
6428 - | |v| crate::constrained::MaybeConstrained::Constrained(v),
|
6429 - | );
|
6253 + | self.list = input.map(crate::constrained::MaybeConstrained::Constrained);
|
6430 6254 | self
|
6431 6255 | }
|
6432 6256 | #[allow(missing_docs)] // documentation missing in model
|
6433 6257 | pub(crate) fn set_list(
|
6434 6258 | mut self,
|
6435 6259 | input: Option<
|
6436 6260 | impl ::std::convert::Into<
|
6437 6261 | crate::constrained::MaybeConstrained<crate::model::LengthList>,
|
6438 6262 | >,
|
6439 6263 | >,
|
6440 6264 | ) -> Self {
|
6441 6265 | self.list = input.map(|v| v.into());
|
6442 6266 | self
|
6443 6267 | }
|
6444 6268 | #[allow(missing_docs)] // documentation missing in model
|
6445 6269 | pub fn map(mut self, input: ::std::option::Option<crate::model::LengthMap>) -> Self {
|
6446 - | self.map = input.map(
|
6447 - | #[allow(clippy::redundant_closure)]
|
6448 - | |v| crate::constrained::MaybeConstrained::Constrained(v),
|
6449 - | );
|
6270 + | self.map = input.map(crate::constrained::MaybeConstrained::Constrained);
|
6450 6271 | self
|
6451 6272 | }
|
6452 6273 | #[allow(missing_docs)] // documentation missing in model
|
6453 6274 | pub(crate) fn set_map(
|
6454 6275 | mut self,
|
6455 6276 | input: Option<
|
6456 6277 | impl ::std::convert::Into<crate::constrained::MaybeConstrained<crate::model::LengthMap>>,
|
6457 6278 | >,
|
6458 6279 | ) -> Self {
|
6459 6280 | self.map = input.map(|v| v.into());
|