#[non_exhaustive]pub struct CallRecording {
pub recording_id: String,
pub auto: bool,
pub started_by: Option<String>,
pub started_at: Option<Timestamp>,
pub audio_keep_days: u16,
pub my_consent: RecordingConsent,
pub consent_prompt: Option<ConsentPrompt>,
pub participants: Vec<RecordingMember>,
pub trigger: RecordingTrigger,
pub required: bool,
pub my_controls: Option<ServerControls>,
}Expand description
The call’s recording as Sew says it (recording event, Call::recording).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.recording_id: StringThe recording (Sew’s id, a decimal string), or auto while a join into an auto-record
channel waits for an answer.
auto: boolStarted by an auto-record channel.
started_by: Option<String>Who started it (Sew’s member id), when known.
started_at: Option<Timestamp>When it started, by Sew’s clock: a person who joins a call already being recorded
shows the recording’s real running time from it. None while a held join waits for an
answer and Sew has not sent the recording itself (an auto-record room’s first join).
Left out of the serialised form when None.
audio_keep_days: u16How many days Sew keeps the recording’s audio, by the room’s policy (0: the audio is deleted once the transcript is final). From Sew’s recording; while a held join waits and Sew has not sent the recording itself (an auto-record room’s first join), from the notice the person answers, which carries the same policy. Always known, so a person who already answered the notice can still show how long the audio is kept.
my_consent: RecordingConsentThis person’s answer.
consent_prompt: Option<ConsentPrompt>The notice to show while this person has not answered (pending), with its
notice_version; None once answered.
participants: Vec<RecordingMember>Everyone in it.
trigger: RecordingTriggerWhat started it (Sew 0.9.0): a person pressing Record (manual), an auto-record
room’s first join (auto), or the room reaching two people while it requires recording
(required). From auto against an older Sew.
required: boolThe room requires its recording (Sew 0.9.0): it records every call with two or more
people in it, so Sew refuses a Stop (recording_required) while two or more are in the
room. “Stop recording me” (Call::withdraw_consent) always works. True when Sew
started it under that rule (trigger: required) or its notice says so
(consent_prompt.required).
my_controls: Option<ServerControls>This person’s Record and Stop in the call’s room as Sew computed them, carried in the
recording (None from a server that does not compute them, or outside the room).
Implementations§
Source§impl CallRecording
impl CallRecording
Sourcepub fn from_sew(r: &Recording) -> CallRecording
pub fn from_sew(r: &Recording) -> CallRecording
The recording in Sew’s shape (the member’s own view).
Sourcepub fn from_consent_required(c: &ConsentRequired) -> CallRecording
pub fn from_consent_required(c: &ConsentRequired) -> CallRecording
The recording a held join shows: Sew’s 409’s recording with its prompt, or (an
auto-record channel’s first join) the prompt alone.
Trait Implementations§
Source§impl Clone for CallRecording
impl Clone for CallRecording
Source§impl Debug for CallRecording
impl Debug for CallRecording
impl Eq for CallRecording
Source§impl PartialEq for CallRecording
impl PartialEq for CallRecording
Source§impl Serialize for CallRecording
impl Serialize for CallRecording
impl StructuralPartialEq for CallRecording
Auto Trait Implementations§
impl Forget for CallRecording
impl Freeze for CallRecording
impl Move for CallRecording
impl RefUnwindSafe for CallRecording
impl Send for CallRecording
impl Sync for CallRecording
impl Unpin for CallRecording
impl UnsafeUnpin for CallRecording
impl UnwindSafe for CallRecording
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<T> CloneAny for T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CryptoSafe for T
impl<T> CryptoSafe for T
impl<S, T> Duplex<S> for Twhere
T: FromSample<S> + ToSample<S>,
Source§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more