redfish_codegen/models/virtual_media/v1_6_1/transfer_method.rs
1// Generated by redfish-codegen. Do not modify.
2
3
4#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
5pub enum TransferMethod {
6 /// Stream image file data from the source URI.
7 Stream,
8 /// Upload the entire image file from the source URI to the service.
9 Upload,
10}
11
12#[allow(clippy::derivable_impls)]
13impl Default for TransferMethod {
14 fn default() -> TransferMethod {
15 TransferMethod::Stream
16 }
17}
18
19impl crate::Metadata<'static> for TransferMethod {
20 const JSON_SCHEMA: &'static str = "VirtualMedia.v1_6_1.json";
21}