pub struct InstrumentView {
pub id: String,
pub from: Option<String>,
pub to: Option<String>,
pub bars: u32,
pub fingerprint: Option<String>,
}Expand description
Every shape at the root as well, because a window names a view on nearly
every line and arvo_api::research::StudyView would be noise. The names
do not collide: proto has no overloading and neither does this.
Fields§
§id: String§from: Option<String>None when the file exists but holds no usable bars.
to: Option<String>§bars: u32§fingerprint: Option<String>Content hash of the data as it stands right now. The workbench compares this against the hash recorded in a held result to tell whether that result still describes the data on disk.
Implementations§
Source§impl InstrumentView
impl InstrumentView
Sourcepub fn fingerprint(&self) -> &str
pub fn fingerprint(&self) -> &str
Returns the value of fingerprint, or the default value if fingerprint is unset.
Trait Implementations§
Source§impl Clone for InstrumentView
impl Clone for InstrumentView
Source§impl Debug for InstrumentView
impl Debug for InstrumentView
Source§impl Default for InstrumentView
impl Default for InstrumentView
Source§impl<'de> Deserialize<'de> for InstrumentView
impl<'de> Deserialize<'de> for InstrumentView
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
impl Eq for InstrumentView
Source§impl Hash for InstrumentView
impl Hash for InstrumentView
Source§impl Message for InstrumentView
impl Message for InstrumentView
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message with a length-delimiter to a buffer. Read more
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes an instance of the message from a buffer, and merges it into
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.Source§impl PartialEq for InstrumentView
impl PartialEq for InstrumentView
Source§impl Serialize for InstrumentView
impl Serialize for InstrumentView
impl StructuralPartialEq for InstrumentView
Auto Trait Implementations§
impl Freeze for InstrumentView
impl RefUnwindSafe for InstrumentView
impl Send for InstrumentView
impl Sync for InstrumentView
impl Unpin for InstrumentView
impl UnsafeUnpin for InstrumentView
impl UnwindSafe for InstrumentView
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