Struct oas_core::rss::FeedWatcher
source · [−]pub struct FeedWatcher { /* private fields */ }
Implementations
sourceimpl FeedWatcher
impl FeedWatcher
pub fn new(
url: impl AsRef<str>,
settings: Option<FeedSettings>,
mapping: HashMap<String, String>,
feed_record: Option<Record<Feed>>
) -> Result<Self, ParseError>
pub fn with_client(
client: Client,
url: impl AsRef<str>,
settings: Option<FeedSettings>,
mapping: HashMap<String, String>,
feed_record: Option<Record<Feed>>
) -> Result<Self, ParseError>
pub fn url(&self) -> &Url
pub async fn watch(&mut self, db: CouchDB) -> Result<(), RssError>
pub async fn save(
&mut self,
db: &CouchDB,
update: bool
) -> Result<(Vec<PutResult>, Vec<UntypedRecord>), RssError>
pub async fn load(&mut self) -> Result<(), RssError>
pub fn to_post_and_media_records(&self) -> Result<Vec<UntypedRecord>, RssError>
pub fn to_posts(&self) -> Result<Vec<Record<Post>>, RssError>
pub fn to_medias(&self) -> Result<Vec<Record<Media>>, RssError>
Trait Implementations
sourceimpl Clone for FeedWatcher
impl Clone for FeedWatcher
sourcefn clone(&self) -> FeedWatcher
fn clone(&self) -> FeedWatcher
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations
impl !RefUnwindSafe for FeedWatcher
impl Send for FeedWatcher
impl Sync for FeedWatcher
impl Unpin for FeedWatcher
impl !UnwindSafe for FeedWatcher
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<T> IntoCollection<T> for T
impl<T> IntoCollection<T> for T
fn into_collection<A>(self) -> SmallVec<A>where
A: Array<Item = T>,
fn into_collection<A>(self) -> SmallVec<A>where
A: Array<Item = T>,
Converts
self
into a collection.fn mapped<U, F, A>(self, f: F) -> SmallVec<A>where
F: FnMut(T) -> U,
A: Array<Item = U>,
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be
Self