pub struct SimpleContent<T, S = CodingScheme> {
pub value: T,
pub coding_scheme: S,
}Expand description
Wrapper for IEC 62325 simpleContent elements: text content with an
additional codingScheme attribute:
<mRID codingScheme="A10">4045399000008</mRID>Used in Kaskade, Unavailability_MarketDocument, and StatusRequest_MarketDocument.
Fields§
§value: TText content of the element.
coding_scheme: SCoding scheme qualifier attribute.
Implementations§
Source§impl<T, S> SimpleContent<T, S>
impl<T, S> SimpleContent<T, S>
Trait Implementations§
Source§impl<T: Clone, S: Clone> Clone for SimpleContent<T, S>
impl<T: Clone, S: Clone> Clone for SimpleContent<T, S>
Source§fn clone(&self) -> SimpleContent<T, S>
fn clone(&self) -> SimpleContent<T, S>
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<'de, T, S> Deserialize<'de> for SimpleContent<T, S>where
T: Deserialize<'de>,
S: Deserialize<'de>,
impl<'de, T, S> Deserialize<'de> for SimpleContent<T, S>where
T: Deserialize<'de>,
S: Deserialize<'de>,
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<T: Eq, S: Eq> Eq for SimpleContent<T, S>
Source§impl<T: PartialEq, S: PartialEq> PartialEq for SimpleContent<T, S>
impl<T: PartialEq, S: PartialEq> PartialEq for SimpleContent<T, S>
Source§fn eq(&self, other: &SimpleContent<T, S>) -> bool
fn eq(&self, other: &SimpleContent<T, S>) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl<T, S> Serialize for SimpleContent<T, S>
impl<T, S> Serialize for SimpleContent<T, S>
impl<T: PartialEq, S: PartialEq> StructuralPartialEq for SimpleContent<T, S>
Auto Trait Implementations§
impl<T, S> Freeze for SimpleContent<T, S>
impl<T, S> RefUnwindSafe for SimpleContent<T, S>where
T: RefUnwindSafe,
S: RefUnwindSafe,
impl<T, S> Send for SimpleContent<T, S>
impl<T, S> Sync for SimpleContent<T, S>
impl<T, S> Unpin for SimpleContent<T, S>
impl<T, S> UnsafeUnpin for SimpleContent<T, S>where
T: UnsafeUnpin,
S: UnsafeUnpin,
impl<T, S> UnwindSafe for SimpleContent<T, S>where
T: UnwindSafe,
S: UnwindSafe,
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