pub struct Segment<'a> {
pub audio: Option<Vec<Audio<'a>>>,
pub creator: Did<'a>,
pub duration: Option<i64>,
pub id: CowStr<'a>,
pub signing_key: CowStr<'a>,
pub size: Option<i64>,
pub start_time: Datetime,
pub video: Option<Vec<Video<'a>>>,
pub extra_data: BTreeMap<SmolStr, Data<'a>>,
}Expand description
Media file representing a segment of a livestream
Fields§
§audio: Option<Vec<Audio<'a>>>§creator: Did<'a>§duration: Option<i64>The duration of the segment in nanoseconds
id: CowStr<'a>Unique identifier for the segment
signing_key: CowStr<'a>The DID of the signing key used for this segment
size: Option<i64>The size of the segment in bytes
start_time: DatetimeWhen this segment started
video: Option<Vec<Video<'a>>>§extra_data: BTreeMap<SmolStr, Data<'a>>Trait Implementations§
Source§impl Collection for Segment<'_>
impl Collection for Segment<'_>
Source§const NSID: &'static str = "place.stream.segment"
const NSID: &'static str = "place.stream.segment"
The NSID for the Lexicon that defines the schema of records in this collection.
Source§type Record = SegmentRecord
type Record = SegmentRecord
A marker type implementing
XrpcResp that allows typed deserialization of records
from this collection. Used by [Agent::get_record] to return properly typed responses.Source§impl<'de: 'a, 'a> Deserialize<'de> for Segment<'a>
impl<'de: 'a, 'a> Deserialize<'de> for Segment<'a>
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<SegmentGetRecordOutput<'_>> for Segment<'_>
impl From<SegmentGetRecordOutput<'_>> for Segment<'_>
Source§fn from(output: SegmentGetRecordOutput<'_>) -> Self
fn from(output: SegmentGetRecordOutput<'_>) -> Self
Converts to this type from the input type.
Source§impl<'a> IntoStatic for Segment<'a>
impl<'a> IntoStatic for Segment<'a>
impl<'a> Eq for Segment<'a>
impl<'a> StructuralPartialEq for Segment<'a>
Auto Trait Implementations§
impl<'a> Freeze for Segment<'a>
impl<'a> RefUnwindSafe for Segment<'a>
impl<'a> Send for Segment<'a>
impl<'a> Sync for Segment<'a>
impl<'a> Unpin for Segment<'a>
impl<'a> UnwindSafe for Segment<'a>
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
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.