Skip to main content

nominal_api/conjure/objects/module/
latest_version_strategy.rs

1/// This strategy refers to the latest version of the module.
2#[derive(
3    Debug,
4    Clone,
5    conjure_object::serde::Serialize,
6    conjure_object::serde::Deserialize,
7    PartialEq,
8    Eq,
9    PartialOrd,
10    Ord,
11    Hash,
12    Copy
13)]
14#[serde(crate = "conjure_object::serde")]
15#[conjure_object::private::staged_builder::staged_builder]
16#[builder(crate = conjure_object::private::staged_builder, update, inline)]
17pub struct LatestVersionStrategy {}
18impl LatestVersionStrategy {
19    /// Constructs a new instance of the type.
20    #[inline]
21    pub fn new() -> Self {
22        Self::builder().build()
23    }
24}