Skip to main content

Control

Struct Control 

Source
pub struct Control {
Show 29 fields pub base: Resource, pub control_type: Option<Option<ControlType>>, pub set_point_type: Option<Option<SetPointType>>, pub status: Option<Status>, pub control_mode: Option<Option<ControlMode>>, pub set_point: Option<Option<Decimal>>, pub setting_min: Option<Option<Decimal>>, pub setting_max: Option<Option<Decimal>>, pub allowable_numeric_values: Option<Option<Vec<Decimal>>>, pub set_point_units: Option<Option<String>>, pub dead_band: Option<Option<Decimal>>, pub control_delay_seconds: Option<Option<Decimal>>, pub allowable_max: Option<Option<Decimal>>, pub allowable_min: Option<Option<Decimal>>, pub increment: Option<Option<Decimal>>, pub accuracy: Option<Option<Decimal>>, pub physical_context: Option<Option<PhysicalContext>>, pub physical_sub_context: Option<Option<PhysicalSubContext>>, pub implementation: Option<Option<ImplementationType>>, pub set_point_update_time: Option<Option<DateTimeOffset>>, pub control_loop: Option<ControlLoop>, pub location: Option<Location>, pub actions: Option<Actions>, pub default_set_point: Option<Option<Decimal>>, pub set_point_accuracy: Option<Option<Decimal>>, pub set_point_error: Option<Option<Decimal>>, pub related_item: Option<Vec<ReferenceLeaf>>, pub sensor: Option<SensorExcerpt>, pub associated_sensors: Option<Vec<NavProperty<Sensor>>>,
}
Expand description

The Control schema describes a control point and its properties.

This resource shall represent a control point for a Redfish implementation.

Fields§

§base: Resource

Base type

§control_type: Option<Option<ControlType>>

The type of control.

This property shall contain the type of the control.

§set_point_type: Option<Option<SetPointType>>

The set point type used to operate the control.

This property shall contain the type of set point definitions used to describe this control.

§status: Option<Status>

The status and health of the resource and its subordinate or dependent resources.

This property shall contain any status or health properties of the resource.

§control_mode: Option<Option<ControlMode>>

The current operating mode of the control.

This property shall contain the operating mode of the control.

§set_point: Option<Option<Decimal>>

The desired set point of the control.

This property shall contain the desired set point control value. The units shall follow the value of SetPointUnits. If the DefaultSetPoint property is not supported and if a user-defined set point is not configured, the property may contain null in responses.

§setting_min: Option<Option<Decimal>>

The minimum set point in the allowed range.

This property shall contain the minimum desired set point within the acceptable range. The service shall reject values less than the value of AllowableMin. The units shall follow the value of SetPointUnits.

§setting_max: Option<Option<Decimal>>

The maximum set point in the allowed range.

This property shall contain the maximum desired set point within the acceptable range. The service shall reject values greater than the value of AllowableMax. The units shall follow the value of SetPointUnits.

§allowable_numeric_values: Option<Option<Vec<Decimal>>>

The supported values for the set point.

This property shall contain the supported values for this control. The units shall follow the value of SetPointUnits. This property should only be present when the set point or range has a limited set of supported values that cannot be accurately described using the Increment property.

§set_point_units: Option<Option<String>>

The units of the set point and related properties in UCUM c/s format.

This property shall contain the units of the control’s set point and related properties. The value shall follow the case-sensitive symbol format defined by the Unified Code for Units of Measure (UCUM), as specified by the ‘Units of measure annotation’ clause of the Redfish Specification.

§dead_band: Option<Option<Decimal>>

The maximum deviation from the set point allowed before the control will activate.

This property shall contain the maximum deviation value allowed above or below the value of SetPoint before the control will activate.

§control_delay_seconds: Option<Option<Decimal>>

The time delay in seconds before the control will activate once the value has deviated from the set point.

This property shall contain the time in seconds that will elapse after the control value deviates above or below the value of SetPoint before the control will activate.

§allowable_max: Option<Option<Decimal>>

The maximum possible setting for this control.

This property shall indicate the maximum possible value of the SetPoint or SettingMax properties for this control. Services shall not accept values for SetPoint or SettingMax above this value.

§allowable_min: Option<Option<Decimal>>

The minimum possible setting for this control.

This property shall indicate the minimum possible value of the SetPoint or SettingMin properties for this control. Services shall not accept values for SetPoint or SettingMin below this value.

§increment: Option<Option<Decimal>>

The smallest increment supported for the set point.

This property shall contain the smallest change allowed to the value of the SetPoint, SettingMin, or SettingMax properties. The units shall follow the value of SetPointUnits.

§accuracy: Option<Option<Decimal>>

The estimated percent error of measured versus actual values.

This property shall contain the percent error of the measured versus actual values of the SetPoint property.

§physical_context: Option<Option<PhysicalContext>>

The area or device to which this control applies.

This property shall contain a description of the affected component or region within the equipment to which this control applies.

§physical_sub_context: Option<Option<PhysicalSubContext>>

The usage or location within a device to which this control applies.

This property shall contain a description of the usage or sub-region within the equipment to which this control applies. This property generally differentiates multiple controls within the same PhysicalContext instance.

§implementation: Option<Option<ImplementationType>>

The implementation of the control.

This property shall contain the implementation of the control.

§set_point_update_time: Option<Option<DateTimeOffset>>

The date and time that the set point was changed.

This property shall contain the date and time that the value of SetPoint was last changed.

§control_loop: Option<ControlLoop>

The control loop details.

This property shall contain the details for the control loop described by this resource.

§location: Option<Location>

The location information for this control.

This property shall indicate the location information for this control.

§actions: Option<Actions>

The available actions for this resource.

This property shall contain the available actions for this resource.

§default_set_point: Option<Option<Decimal>>

The default set point of the control.

This property shall contain the default set point control value. The units shall follow the value of SetPointUnits. Services apply this value to the SetPoint property under certain conditions, such as a reset of the manager or a ResetToDefaults action.

§set_point_accuracy: Option<Option<Decimal>>

Accuracy (+/-) of the set point.

This property shall contain the accuracy of the value of the SetPoint for this control. The value shall be the absolute value of the maximum deviation of the SetPoint from its actual value. The value shall be in units that follow the SetPointUnits for this control.

§set_point_error: Option<Option<Decimal>>

The error (difference) from the desired set point of the control.

This property shall contain the error, or difference, of the related Sensor Reading value from the value of the SetPoint. The units shall follow the value of SetPointUnits.

§related_item: Option<Vec<ReferenceLeaf>>§sensor: Option<SensorExcerpt>

The sensor reading associated with this control.

This property shall contain the Sensor excerpt directly associated with this control. The value of the DataSourceUri property shall reference a resource of type Sensor. This property shall not be present if multiple sensors are associated with a single control.

§associated_sensors: Option<Vec<NavProperty<Sensor>>>

An array of links to the sensors associated with this control.

This property shall contain an array of links to resources of type Sensor that represent the sensors related to this control.

Trait Implementations§

Source§

impl Debug for Control

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for Control

Source§

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 EntityTypeRef for Control

Source§

fn odata_id(&self) -> &ODataId

Value of @odata.id field of the Entity.
Source§

fn etag(&self) -> Option<&ODataETag>

Value of @odata.etag field of the Entity.
Source§

fn refresh<B>( &self, bmc: &B, ) -> impl Future<Output = Result<Arc<Self>, <B as Bmc>::Error>> + Send
where B: Bmc, Self: for<'de> Deserialize<'de> + 'static,

Refresh the entity by fetching it again from the BMC.
Source§

impl Expandable for Control

Source§

fn expand<B>( &self, bmc: &B, query: ExpandQuery, ) -> impl Future<Output = Result<Arc<Self>, <B as Bmc>::Error>> + Send
where B: Bmc,

Expand the entity according to the provided query.
Source§

impl RedfishSettings<Control> for Control

Source§

fn settings_object(&self) -> Option<NavProperty<Self>>

Reference to the enity type object.
Source§

impl Send for Control

SAFETY: All generated data types are Send

Source§

impl Sync for Control

SAFETY: All generated data types are Sync

Source§

impl Updatable<ControlUpdate> for Control

Source§

fn update<B>( &self, bmc: &B, update: &V, ) -> impl Future<Output = Result<ModificationResponse<Self>, <B as Bmc>::Error>> + Send
where B: Bmc,

Update an entity using update as payload.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more