pub struct Field { /* private fields */ }
Expand description
Field to be fed into a Model
.
A Field
can be created using the builder pattern.
Example:
use genanki_rs::Field;
let field1 = Field::new("field1");
let field2 = Field::new("field2").font("Comic Sans").size(15);
The builder has the following default values:
sticky
-false
rtl
-false
font
-Liberation Sans
size
-20
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Field
impl RefUnwindSafe for Field
impl Send for Field
impl Sync for Field
impl Unpin for Field
impl UnwindSafe for Field
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