pub struct DiscoverResult {
pub contents: Vec<Content>,
pub errors: Vec<(PathBuf, Error)>,
}Expand description
Result of discovering content posts in a directory.
Contains both successfully loaded posts and any errors encountered. The caller can decide how to handle errors (e.g., log them, display warnings).
Fields§
§contents: Vec<Content>Successfully loaded content posts, sorted by created date (newest first)
errors: Vec<(PathBuf, Error)>Errors encountered while loading posts: (path, error)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DiscoverResult
impl RefUnwindSafe for DiscoverResult
impl Send for DiscoverResult
impl Sync for DiscoverResult
impl Unpin for DiscoverResult
impl UnsafeUnpin for DiscoverResult
impl UnwindSafe for DiscoverResult
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