pub struct PseudoChannel {Show 20 fields
pub title: String,
pub link: String,
pub description: String,
pub language: Option<String>,
pub copyright: Option<String>,
pub managing_editor: Option<String>,
pub webmaster: Option<String>,
pub pub_date: Option<String>,
pub last_build_date: Option<String>,
pub categories: Option<Vec<PseudoCategory>>,
pub generator: Option<String>,
pub docs: Option<String>,
pub cloud: Option<PseudoCloud>,
pub rating: Option<String>,
pub ttl: Option<String>,
pub image: Option<PseudoImage>,
pub text_input: Option<PseudoTextInput>,
pub skip_hours: Option<Vec<String>>,
pub skip_days: Option<Vec<String>>,
pub items: Option<Vec<PseudoItem>>,
}Expand description
Serde impled version of rss::Channel
Fields§
§title: String§link: String§description: String§language: Option<String>§copyright: Option<String>§managing_editor: Option<String>§webmaster: Option<String>§pub_date: Option<String>§last_build_date: Option<String>§categories: Option<Vec<PseudoCategory>>§generator: Option<String>§docs: Option<String>§cloud: Option<PseudoCloud>§rating: Option<String>§ttl: Option<String>§image: Option<PseudoImage>§text_input: Option<PseudoTextInput>§skip_hours: Option<Vec<String>>§skip_days: Option<Vec<String>>§items: Option<Vec<PseudoItem>>Implementations§
Source§impl PseudoChannel
impl PseudoChannel
Sourcepub fn with_items(self, items: Vec<PseudoItem>) -> Self
pub fn with_items(self, items: Vec<PseudoItem>) -> Self
Set self with items
Trait Implementations§
Source§impl Clone for PseudoChannel
impl Clone for PseudoChannel
Source§fn clone(&self) -> PseudoChannel
fn clone(&self) -> PseudoChannel
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PseudoChannel
impl Debug for PseudoChannel
Source§impl Default for PseudoChannel
impl Default for PseudoChannel
Source§fn default() -> PseudoChannel
fn default() -> PseudoChannel
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PseudoChannel
impl<'de> Deserialize<'de> for PseudoChannel
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<PseudoChannel> for Channel
impl From<PseudoChannel> for Channel
Source§fn from(val: PseudoChannel) -> Self
fn from(val: PseudoChannel) -> Self
Converts to this type from the input type.
Source§impl Saveable for PseudoChannel
impl Saveable for PseudoChannel
Source§fn load_string<'life0, 'async_trait>(
path: &'life0 Path,
) -> Pin<Box<dyn Future<Output = Result<String, Box<dyn Error>>> + Send + 'async_trait>>where
'life0: 'async_trait,
fn load_string<'life0, 'async_trait>(
path: &'life0 Path,
) -> Pin<Box<dyn Future<Output = Result<String, Box<dyn Error>>> + Send + 'async_trait>>where
'life0: 'async_trait,
Load string content from a file
Source§fn load_json<'life0, 'async_trait>(
path: &'life0 Path,
) -> Pin<Box<dyn Future<Output = Result<Self, Box<dyn Error>>> + Send + 'async_trait>>where
Self: Send + 'async_trait,
'life0: 'async_trait,
fn load_json<'life0, 'async_trait>(
path: &'life0 Path,
) -> Pin<Box<dyn Future<Output = Result<Self, Box<dyn Error>>> + Send + 'async_trait>>where
Self: Send + 'async_trait,
'life0: 'async_trait,
Loads and deserializes json content from a file
Source§fn load_rss<'life0, 'async_trait>(
path: &'life0 Path,
) -> Pin<Box<dyn Future<Output = Result<Channel, Box<dyn Error>>> + Send + 'async_trait>>where
Self: Send + 'async_trait,
'life0: 'async_trait,
fn load_rss<'life0, 'async_trait>(
path: &'life0 Path,
) -> Pin<Box<dyn Future<Output = Result<Channel, Box<dyn Error>>> + Send + 'async_trait>>where
Self: Send + 'async_trait,
'life0: 'async_trait,
Loads and deserializes rss compatible xml from a file
Source§fn save_string<'life0, 'async_trait>(
path: &'life0 Path,
s: String,
) -> Pin<Box<dyn Future<Output = Result<(), Box<dyn Error>>> + Send + 'async_trait>>where
'life0: 'async_trait,
fn save_string<'life0, 'async_trait>(
path: &'life0 Path,
s: String,
) -> Pin<Box<dyn Future<Output = Result<(), Box<dyn Error>>> + Send + 'async_trait>>where
'life0: 'async_trait,
Saves a string to file
Source§fn save_json<'life0, 'life1, 'async_trait>(
&'life0 self,
path: &'life1 Path,
) -> Pin<Box<dyn Future<Output = Result<(), Box<dyn Error>>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn save_json<'life0, 'life1, 'async_trait>(
&'life0 self,
path: &'life1 Path,
) -> Pin<Box<dyn Future<Output = Result<(), Box<dyn Error>>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Serializes and save as json
Auto Trait Implementations§
impl Freeze for PseudoChannel
impl RefUnwindSafe for PseudoChannel
impl Send for PseudoChannel
impl Sync for PseudoChannel
impl Unpin for PseudoChannel
impl UnwindSafe for PseudoChannel
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