pub struct DecodingTemplate {
pub scope_fields_specs: Box<[FieldSpecifier]>,
pub fields_specs: Box<[FieldSpecifier]>,
pub processed_count: u64,
}Expand description
Simpler template that is used to decode data records
Fields§
§scope_fields_specs: Box<[FieldSpecifier]>§fields_specs: Box<[FieldSpecifier]>§processed_count: u64Number of Data Records processed using this template
Implementations§
Source§impl DecodingTemplate
impl DecodingTemplate
pub const fn new( scope_fields_specs: Box<[FieldSpecifier]>, fields_specs: Box<[FieldSpecifier]>, ) -> Self
Sourcepub const fn increment_processed_count(&mut self)
pub const fn increment_processed_count(&mut self)
Increment Data Record count by one
Sourcepub const fn processed_count(&self) -> u64
pub const fn processed_count(&self) -> u64
Get the current processed Data Record count
Sourcepub const fn reset_processed_count(&mut self) -> u64
pub const fn reset_processed_count(&mut self) -> u64
Get the current processed Data Record count and reset the value to zero
Trait Implementations§
Source§impl Clone for DecodingTemplate
impl Clone for DecodingTemplate
Source§fn clone(&self) -> DecodingTemplate
fn clone(&self) -> DecodingTemplate
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 DecodingTemplate
impl Debug for DecodingTemplate
Source§impl<'de> Deserialize<'de> for DecodingTemplate
impl<'de> Deserialize<'de> for DecodingTemplate
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 DecodingTemplate
impl PartialEq for DecodingTemplate
Source§impl<'a> ReadablePduWithOneInput<'a, &DecodingTemplate, LocatedDataRecordParsingError<'a>> for DataRecord
impl<'a> ReadablePduWithOneInput<'a, &DecodingTemplate, LocatedDataRecordParsingError<'a>> for DataRecord
fn from_wire( buf: Span<'a>, field_specifiers: &DecodingTemplate, ) -> IResult<Span<'a>, Self, LocatedDataRecordParsingError<'a>>
Source§impl Serialize for DecodingTemplate
impl Serialize for DecodingTemplate
impl Eq for DecodingTemplate
impl StructuralPartialEq for DecodingTemplate
Auto Trait Implementations§
impl Freeze for DecodingTemplate
impl RefUnwindSafe for DecodingTemplate
impl Send for DecodingTemplate
impl Sync for DecodingTemplate
impl Unpin for DecodingTemplate
impl UnsafeUnpin for DecodingTemplate
impl UnwindSafe for DecodingTemplate
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,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more