Lines Matching defs:size
42 #[serde(deserialize_with = "utils::size::deserialize_size")]
43 pub size: usize,
58 size = "1024M"
70 assert_eq!(config.metadata.size, 1024 * 1024 * 1024); // Assuming `deserialize_size` converts MB to Bytes
78 size = "512M"
85 assert_eq!(config.metadata.size, 512 * 1024 * 1024); // Assuming `deserialize_size` converts MB to Bytes
92 size = "512M"
103 size = 1048576
110 assert_eq!(config.metadata.size, 1048576); // Assuming `deserialize_size` converts MB to Bytes
117 size = "1048576"
124 assert_eq!(config.metadata.size, 1048576); // Assuming `deserialize_size` converts MB to Bytes
135 /// Parse from an incorrect size field (string)
141 size = "not_a_size"
147 /// Parse from an incorrect size field (array)
150 // The 'size' field should not be an array
154 size = ["not_a_size"]