pub struct FeedOptions<'a> {
pub title: &'a str,
pub site_url: &'a str,
pub description: &'a str,
pub full_preview: bool,
pub max_items: usize,
pub paginated: bool,
}Expand description
Options controlling how a feed is built.
Grouping these avoids a long positional-argument list at the call site
(see build_feed) and makes it cheap to add new options later without
breaking every caller.
Fields§
§title: &'a str§site_url: &'a str§description: &'a str§full_preview: bool§max_items: usize§paginated: boolTrait Implementations§
Source§impl<'a> Clone for FeedOptions<'a>
impl<'a> Clone for FeedOptions<'a>
Source§fn clone(&self) -> FeedOptions<'a>
fn clone(&self) -> FeedOptions<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<'a> Freeze for FeedOptions<'a>
impl<'a> RefUnwindSafe for FeedOptions<'a>
impl<'a> Send for FeedOptions<'a>
impl<'a> Sync for FeedOptions<'a>
impl<'a> Unpin for FeedOptions<'a>
impl<'a> UnsafeUnpin for FeedOptions<'a>
impl<'a> UnwindSafe for FeedOptions<'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