pub struct OwnedBpsvRow {
pub raw_values: Vec<String>,
pub typed_values: Option<Vec<BpsvValue>>,
}
Expand description
An owned version of BpsvRow for when we need to store data
Fields§
§raw_values: Vec<String>
Raw string values as they appear in the BPSV
typed_values: Option<Vec<BpsvValue>>
Typed values (lazy-loaded)
Implementations§
Source§impl OwnedBpsvRow
impl OwnedBpsvRow
Sourcepub fn from_borrowed(row: &BpsvRow<'_>) -> Self
pub fn from_borrowed(row: &BpsvRow<'_>) -> Self
Create from a borrowed row
Sourcepub fn as_borrowed(&self) -> BpsvRow<'_>
pub fn as_borrowed(&self) -> BpsvRow<'_>
Convert to borrowed row
Sourcepub fn get_raw_by_name(
&self,
field_name: &str,
schema: &BpsvSchema,
) -> Option<&str>
pub fn get_raw_by_name( &self, field_name: &str, schema: &BpsvSchema, ) -> Option<&str>
Get a raw string value by field name using the schema
Trait Implementations§
Source§impl BpsvRowOps for OwnedBpsvRow
impl BpsvRowOps for OwnedBpsvRow
Source§fn get_raw_by_name(&self, field_name: &str, schema: &BpsvSchema) -> Option<&str>
fn get_raw_by_name(&self, field_name: &str, schema: &BpsvSchema) -> Option<&str>
Get a raw string value by field name using the schema
Source§impl Clone for OwnedBpsvRow
impl Clone for OwnedBpsvRow
Source§fn clone(&self) -> OwnedBpsvRow
fn clone(&self) -> OwnedBpsvRow
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 OwnedBpsvRow
impl Debug for OwnedBpsvRow
Source§impl PartialEq for OwnedBpsvRow
impl PartialEq for OwnedBpsvRow
impl StructuralPartialEq for OwnedBpsvRow
Auto Trait Implementations§
impl Freeze for OwnedBpsvRow
impl RefUnwindSafe for OwnedBpsvRow
impl Send for OwnedBpsvRow
impl Sync for OwnedBpsvRow
impl Unpin for OwnedBpsvRow
impl UnwindSafe for OwnedBpsvRow
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