pub struct FieldMap { /* private fields */ }Implementations§
source§impl FieldMap
impl FieldMap
pub fn from_field_order(_field_order: FieldOrder) -> Self
pub fn from_field_map(src: &FieldMap) -> Self
pub fn set_field_base(&mut self, field: Field, overwrite: Option<bool>) -> bool
pub fn set_field_deref<F: Deref<Target = Field> + Clone>( &mut self, field: F, overwrite: Option<bool> ) -> bool
pub fn set_tag_value<'a, T: IntoBytes<FieldValue>>( &mut self, tag: Tag, value: T )
pub fn set_field<'a, T: Into<Field>>(&mut self, field: T)
pub fn get_field(&self, tag: Tag) -> Option<&Field>
pub fn get_int(&self, tag: Tag) -> Result<u32, FieldMapError>
pub fn get_string(&self, tag: Tag) -> Result<String, FieldMapError>
pub fn get_string_unchecked(&self, tag: Tag) -> String
pub fn get_bool(&self, tag: Tag) -> bool
pub fn get_datetime(&self, tag: Tag) -> Result<DateTime<Utc>, ConversionError>
pub fn get_field_mut(&mut self, tag: Tag) -> Option<&mut Field>
pub fn is_field_set(&self, tag: Tag) -> bool
pub fn remove_field(&mut self, tag: Tag)
pub fn add_group(&mut self, _tag: Tag, group: &Group, set_count: Option<bool>)
sourcepub fn get_group(&self, index: u32, field: Tag) -> Result<&Group, FieldMapError>
pub fn get_group(&self, index: u32, field: Tag) -> Result<&Group, FieldMapError>
index: Index in group starting at 1 field: Field Tag (Tag of field which contains count of group)
sourcepub fn get_group_mut(
&mut self,
index: u32,
field: Tag
) -> Result<&mut Group, FieldMapError>
pub fn get_group_mut( &mut self, index: u32, field: Tag ) -> Result<&mut Group, FieldMapError>
index: Index in group starting at 1 field: Field Tag (Tag of field which contains count of group)
sourcepub fn remove_group(
&mut self,
index: u32,
field: Tag
) -> Result<(), FieldMapError>
pub fn remove_group( &mut self, index: u32, field: Tag ) -> Result<(), FieldMapError>
index: Index in group starting at 1 field: Field Tag (Tag of field which contains count of group)
pub fn replace_group( &mut self, index: Tag, field: Tag, group: Group ) -> Result<Group, FieldMapError>
pub fn group_count(&self, field: Tag) -> Result<usize, FieldMapError>
pub fn is_empty(&self) -> bool
pub fn calculate_total(&self) -> Total
pub fn len(&self) -> Length
pub fn entries<'a>(&'a self) -> impl Iterator<Item = (&'a Tag, &Field)>
pub fn clear(&mut self)
pub fn calculate_string(&self, prefields: Option<FieldOrder>) -> String
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for FieldMap
impl Send for FieldMap
impl Sync for FieldMap
impl Unpin for FieldMap
impl UnwindSafe for FieldMap
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