#[non_exhaustive]pub struct PodcastChat {
pub server: String,
pub protocol: String,
pub account_id: Option<String>,
pub space: Option<String>,
}Expand description
Podcast 2.0 chat room reference
Points to a chat server/room associated with the podcast or episode (podcast:chat), e.g. Matrix or XMPP.
Namespace: https://podcastindex.org/namespace/1.0
§Examples
use feedparser_rs::PodcastChat;
let mut chat = PodcastChat::default();
chat.server = "matrix.example.com".to_string();
chat.protocol = "matrix".to_string();
chat.account_id = Some("@podcast:example.com".to_string());
chat.space = None;
assert_eq!(chat.server, "matrix.example.com");Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.server: StringChat server address (server attribute, required)
protocol: StringChat protocol (protocol attribute, required): “matrix”, “xmpp”, etc.
account_id: Option<String>Account identifier on the chat server (accountId attribute)
space: Option<String>Space identifier, for protocols that group rooms (space attribute)
Trait Implementations§
Source§impl Clone for PodcastChat
impl Clone for PodcastChat
Source§impl Debug for PodcastChat
impl Debug for PodcastChat
Source§impl Default for PodcastChat
impl Default for PodcastChat
impl Eq for PodcastChat
Source§impl PartialEq for PodcastChat
impl PartialEq for PodcastChat
impl StructuralPartialEq for PodcastChat
Auto Trait Implementations§
impl Forget for PodcastChat
impl Freeze for PodcastChat
impl Move for PodcastChat
impl RefUnwindSafe for PodcastChat
impl Send for PodcastChatwhere
RawVecInner: Send,
impl Sync for PodcastChatwhere
RawVecInner: Sync,
impl Unpin for PodcastChat
impl UnsafeUnpin for PodcastChat
impl UnwindSafe for PodcastChatwhere
RawVecInner: UnwindSafe,
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