pub struct VsfField {
pub name: String,
pub values: Vec<VsfType>,
}Expand description
Single field in a section
Fields§
§name: String§values: Vec<VsfType>Implementations§
Source§impl VsfField
impl VsfField
Sourcepub fn new(name: impl Into<String>) -> Self
pub fn new(name: impl Into<String>) -> Self
Create a new field with the given name and no values
Sourcepub fn with_values(name: impl Into<String>, values: Vec<VsfType>) -> Self
pub fn with_values(name: impl Into<String>, values: Vec<VsfType>) -> Self
Create a field with name and values
Sourcepub fn with_value(self, value: VsfType) -> Self
pub fn with_value(self, value: VsfType) -> Self
Add a value to the field (builder pattern)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for VsfField
impl RefUnwindSafe for VsfField
impl Send for VsfField
impl Sync for VsfField
impl Unpin for VsfField
impl UnsafeUnpin for VsfField
impl UnwindSafe for VsfField
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