#[non_exhaustive]pub struct ElementRef {
pub table: String,
pub row: usize,
pub source_uid: Option<String>,
/* private fields */
}Expand description
A row in one table of the static payload.
source_uid is the row’s payload identity: when the referenced table
carries uid values, a present source_uid resolves the target row and a
present row must agree with it. In a table without uids (packages written
before payload identity existed), source_uid is advisory and row
addresses the update alone. On the wire, row may be omitted when
source_uid is given.
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. Meaningful only when the wire carried
one; read ElementRef::wire_row before trusting it.
source_uid: Option<String>The row’s payload identity (its uid field), when the producer knows it.
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 · 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<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ElementRef
impl PartialEq for ElementRef
Source§impl Serialize for ElementRef
impl Serialize for ElementRef
impl Eq 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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more