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 chat = PodcastChat {
server: "matrix.example.com".to_string(),
protocol: "matrix".to_string(),
account_id: Some("@podcast:example.com".to_string()),
space: None,
};
assert_eq!(chat.server, "matrix.example.com");Fields§
§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§fn clone(&self) -> PodcastChat
fn clone(&self) -> PodcastChat
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 moreSource§impl Debug for PodcastChat
impl Debug for PodcastChat
Source§impl Default for PodcastChat
impl Default for PodcastChat
Source§fn default() -> PodcastChat
fn default() -> PodcastChat
Returns the “default value” for a type. Read more
impl Eq for PodcastChat
Source§impl PartialEq for PodcastChat
impl PartialEq for PodcastChat
impl StructuralPartialEq for PodcastChat
Auto Trait Implementations§
impl Freeze for PodcastChat
impl RefUnwindSafe for PodcastChat
impl Send for PodcastChat
impl Sync for PodcastChat
impl Unpin for PodcastChat
impl UnsafeUnpin for PodcastChat
impl UnwindSafe for PodcastChat
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