Struct seaplane_cli::ops::formation::FormationConfiguration
source · [−]pub struct FormationConfiguration {
pub id: Id,
pub remote_id: Option<Uuid>,
pub model: FormationConfigurationModel,
}Expand description
Wraps the FormationConfiguration model adding a local ID and the UUID associated
Fields
id: Idremote_id: Option<Uuid>model: FormationConfigurationModelImplementations
sourceimpl 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
sourceimpl Clone for FormationConfiguration
impl Clone for FormationConfiguration
sourcefn clone(&self) -> FormationConfiguration
fn clone(&self) -> FormationConfiguration
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for FormationConfiguration
impl Debug for FormationConfiguration
sourceimpl<'de> Deserialize<'de> for FormationConfiguration
impl<'de> Deserialize<'de> for FormationConfiguration
sourcefn 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
sourceimpl Serialize for FormationConfiguration
impl Serialize for FormationConfiguration
Auto Trait Implementations
impl RefUnwindSafe for FormationConfiguration
impl Send for FormationConfiguration
impl Sync for FormationConfiguration
impl Unpin for FormationConfiguration
impl UnwindSafe for FormationConfiguration
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more