oci_rust_sdk/core/models/
instance_source_details.rs1use serde::{Deserialize, Serialize};
2
3#[allow(unused_imports)]
4use super::*;
5
6#[derive(Debug, Clone, Serialize, Deserialize)]
7#[serde(rename_all = "camelCase")]
8pub struct InstanceSourceDetails {
9 pub source_type: String,
10}
11
12pub struct InstanceSourceDetailsRequired {
14 pub source_type: String,
15}
16
17impl InstanceSourceDetails {
18 pub fn new(required: InstanceSourceDetailsRequired) -> Self {
20 Self {
21 source_type: required.source_type,
22 }
23 }
24
25 pub fn set_source_type(mut self, value: String) -> Self {
27 self.source_type = value;
28 self
29 }
30}