#[non_exhaustive]pub struct ElementRef {
pub table: String,
pub row: usize,
pub source_uid: Option<String>,
}Expand description
A row in one table of the static payload.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.table: StringPayload table name, such as loads, generators, branches, or hvdc.
row: usizeZero based row index in table.
source_uid: Option<String>Optional source record UID for diagnostics and provenance.
Implementations§
Trait Implementations§
Source§impl Clone for ElementRef
impl Clone for ElementRef
Source§fn clone(&self) -> ElementRef
fn clone(&self) -> ElementRef
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ElementRef
impl Debug for ElementRef
Source§impl<'de> Deserialize<'de> for ElementRef
impl<'de> Deserialize<'de> for ElementRef
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 ElementRef
Source§impl PartialEq for ElementRef
impl PartialEq for ElementRef
Source§fn eq(&self, other: &ElementRef) -> bool
fn eq(&self, other: &ElementRef) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ElementRef
impl Serialize for ElementRef
impl StructuralPartialEq for ElementRef
Auto Trait Implementations§
impl Freeze for ElementRef
impl RefUnwindSafe for ElementRef
impl Send for ElementRef
impl Sync for ElementRef
impl Unpin for ElementRef
impl UnsafeUnpin for ElementRef
impl UnwindSafe for ElementRef
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.