pub struct PatchSpectrometer {
pub input: Option<SpectrometerInput>,
pub output_sampling_frequency: Option<f64>,
pub number_integrations: Option<u32>,
pub mode: Option<SpectrometerMode>,
}Expand description
Spectrometer PATCH JSON schema.
This JSON schema corresponds to PATCH requests on /api/spectrometer. It is
used to change the spectrometer rate, by specifying the target output
sampling frequency, or the number of integrations. Since each parameter can
be computed in terms of the other, only one of them should be used in the PATCH request.
Fields§
§input: Option<SpectrometerInput>Input source.
output_sampling_frequency: Option<f64>Output sampling frequency in samples per second.
number_integrations: Option<u32>Number of non-coherent integrations.
mode: Option<SpectrometerMode>Spectrometer mode.
Trait Implementations§
Source§impl Clone for PatchSpectrometer
impl Clone for PatchSpectrometer
Source§fn clone(&self) -> PatchSpectrometer
fn clone(&self) -> PatchSpectrometer
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 PatchSpectrometer
impl Debug for PatchSpectrometer
Source§impl Default for PatchSpectrometer
impl Default for PatchSpectrometer
Source§fn default() -> PatchSpectrometer
fn default() -> PatchSpectrometer
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PatchSpectrometer
impl<'de> Deserialize<'de> for PatchSpectrometer
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 for PatchSpectrometer
impl PartialEq for PatchSpectrometer
Source§impl Serialize for PatchSpectrometer
impl Serialize for PatchSpectrometer
impl StructuralPartialEq for PatchSpectrometer
Auto Trait Implementations§
impl Freeze for PatchSpectrometer
impl RefUnwindSafe for PatchSpectrometer
impl Send for PatchSpectrometer
impl Sync for PatchSpectrometer
impl Unpin for PatchSpectrometer
impl UnwindSafe for PatchSpectrometer
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