pub struct LiveStream {Show 16 fields
pub identifier: String,
pub title: Option<String>,
pub summary: Option<String>,
pub image: Option<Url>,
pub streaming_url: Option<Url>,
pub recording_url: Option<Url>,
pub starts: Option<Timestamp>,
pub ends: Option<Timestamp>,
pub status: Option<LiveStatus>,
pub current_participants: Option<u64>,
pub total_participants: Option<u64>,
pub participants: Vec<LiveParticipant>,
pub hashtags: Vec<String>,
pub relays: Vec<RelayUrl>,
pub pinned: Vec<EventId>,
pub extra_tags: Vec<Tag>,
}Expand description
Typed bundle for a kind: 30311 live streaming event.
Fields§
§identifier: Stringd identifier.
title: Option<String>title.
summary: Option<String>summary.
image: Option<Url>image preview URL.
streaming_url: Option<Url>streaming URL.
recording_url: Option<Url>recording URL (posted once the activity ends).
starts: Option<Timestamp>starts Unix timestamp.
ends: Option<Timestamp>ends Unix timestamp.
status: Option<LiveStatus>status.
current_participants: Option<u64>current_participants count.
total_participants: Option<u64>total_participants count.
participants: Vec<LiveParticipant>p participants.
t hashtags (lower-cased).
relays: Vec<RelayUrl>relays recommendations.
pinned: Vec<EventId>pinned live-chat message event ids.
Forward-compatible passthrough for unknown tags.
Implementations§
Source§impl LiveStream
impl LiveStream
Sourcepub fn new(identifier: impl Into<String>) -> Self
pub fn new(identifier: impl Into<String>) -> Self
Construct a stream with the identifier seeded.
Sourcepub fn coordinate(&self, author: PublicKey) -> Coordinate
pub fn coordinate(&self, author: PublicKey) -> Coordinate
Build the stream’s addressable coordinate.
Trait Implementations§
Source§impl Clone for LiveStream
impl Clone for LiveStream
Source§fn clone(&self) -> LiveStream
fn clone(&self) -> LiveStream
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 LiveStream
impl Debug for LiveStream
Source§impl Default for LiveStream
impl Default for LiveStream
Source§fn default() -> LiveStream
fn default() -> LiveStream
Returns the “default value” for a type. Read more
impl Eq for LiveStream
Source§impl PartialEq for LiveStream
impl PartialEq for LiveStream
impl StructuralPartialEq for LiveStream
Auto Trait Implementations§
impl Freeze for LiveStream
impl RefUnwindSafe for LiveStream
impl Send for LiveStream
impl Sync for LiveStream
impl Unpin for LiveStream
impl UnsafeUnpin for LiveStream
impl UnwindSafe for LiveStream
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.