pub struct CardReader<'a> { /* private fields */ }Expand description
A single composable card bound to its CardSchema, from
TypedReader::card. Same get / get_body verbs as TypedReader,
reading the card at its bound index.
Implementations§
Source§impl CardReader<'_>
impl CardReader<'_>
Sourcepub fn get(&self, name: &str) -> Result<Option<ReadValue>, EditError>
pub fn get(&self, name: &str) -> Result<Option<ReadValue>, EditError>
Read a field on this card, interpreted by its declared type — the card
twin of TypedReader::get. Resolves the field against the card’s
CardSchema; a name the schema does not declare — or any name when the
card kind is unknown — reads with EditError::UnknownField.
Sourcepub fn get_body(&self) -> String
pub fn get_body(&self) -> String
This card’s body markdown — the card twin of TypedReader::get_body,
quill-free and never raising.
Auto Trait Implementations§
impl<'a> Freeze for CardReader<'a>
impl<'a> RefUnwindSafe for CardReader<'a>
impl<'a> Send for CardReader<'a>
impl<'a> Sync for CardReader<'a>
impl<'a> Unpin for CardReader<'a>
impl<'a> UnsafeUnpin for CardReader<'a>
impl<'a> UnwindSafe for CardReader<'a>
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