pub struct FormationConfiguration {
pub id: Id,
pub remote_id: Option<Uuid>,
pub model: FormationConfiguration,
}Expand description
Wraps the FormationConfiguration model adding a local ID and the UUID associated
Fields§
§id: Id§remote_id: Option<Uuid>§model: FormationConfigurationImplementations§
Source§impl FormationConfiguration
impl FormationConfiguration
pub fn new(model: FormationConfigurationModel) -> Self
pub fn with_uuid(uuid: Uuid, model: FormationConfigurationModel) -> Self
pub fn get_flight(&self, flight: &str) -> Option<&FlightModel>
Sourcepub fn eq_without_id(&self, other: &Self) -> bool
pub fn eq_without_id(&self, other: &Self) -> bool
Performs equality check without consider the local ID
Trait Implementations§
Source§impl Clone for FormationConfiguration
impl Clone for FormationConfiguration
Source§fn clone(&self) -> FormationConfiguration
fn clone(&self) -> FormationConfiguration
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FormationConfiguration
impl Debug for FormationConfiguration
Source§impl<'de> Deserialize<'de> for FormationConfiguration
impl<'de> Deserialize<'de> for FormationConfiguration
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for FormationConfiguration
impl RefUnwindSafe for FormationConfiguration
impl Send for FormationConfiguration
impl Sync for FormationConfiguration
impl Unpin for FormationConfiguration
impl UnwindSafe for FormationConfiguration
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more