pub struct AcquisitionOperation {
pub operation_state: Option<OperationState>,
pub operation_type: Option<OperationType>,
pub reason: Option<String>,
pub reasons: Vec<AcquisitionOperationDisallowReason>,
}Expand description
Fields§
§operation_state: Option<OperationState>State of the the AcquisitionOperation for the current user
operation_type: Option<OperationType>AcquisitionOperationType: install, request, buy, etc…
reason: Option<String>Optional reason to justify current state. Typically used with Disallow state.
reasons: Vec<AcquisitionOperationDisallowReason>List of reasons indicating why the operation is not allowed.
Implementations§
Trait Implementations§
source§impl Clone for AcquisitionOperation
impl Clone for AcquisitionOperation
source§fn clone(&self) -> AcquisitionOperation
fn clone(&self) -> AcquisitionOperation
Returns a copy 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 AcquisitionOperation
impl Debug for AcquisitionOperation
source§impl Default for AcquisitionOperation
impl Default for AcquisitionOperation
source§fn default() -> AcquisitionOperation
fn default() -> AcquisitionOperation
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for AcquisitionOperation
impl<'de> Deserialize<'de> for AcquisitionOperation
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
source§impl PartialEq<AcquisitionOperation> for AcquisitionOperation
impl PartialEq<AcquisitionOperation> for AcquisitionOperation
source§fn eq(&self, other: &AcquisitionOperation) -> bool
fn eq(&self, other: &AcquisitionOperation) -> bool
This method tests for
self and other values to be equal, and is used
by ==.