pub struct VirtualElementCallWidgetProperties {
pub element_call_url: String,
pub widget_id: String,
pub parent_url: Option<String>,
pub font_scale: Option<f64>,
pub font: Option<String>,
pub encryption: EncryptionSystem,
pub posthog_user_id: Option<String>,
pub posthog_api_host: Option<String>,
pub posthog_api_key: Option<String>,
pub rageshake_submit_url: Option<String>,
pub sentry_dsn: Option<String>,
pub sentry_environment: Option<String>,
}
experimental-widgets
only.Expand description
Properties to create a new virtual Element Call widget.
All these are required to start the widget in the first place.
This is different from the VirtualElementCallWidgetConfiguration
which
configures the widgets behavior.
Fields§
§element_call_url: String
The url to the app.
E.g. https://call.element.io, https://call.element.dev, https://call.element.dev/room
widget_id: String
The widget id.
parent_url: Option<String>
The url that is used as the target for the PostMessages sent by the widget (to the client).
For a web app client this is the client url. In case of using other
platforms the client most likely is setup up to listen to
postmessages in the same webview the widget is hosted. In this case
the parent_url
is set to the url of the webview with the widget. Be
aware that this means that the widget will receive its own postmessage
messages. The matrix-widget-api
(js) ignores those so this works but
it might break custom implementations.
Defaults to element_call_url
for the non-iframe (dedicated webview)
usecase.
font_scale: Option<f64>
The font scale which will be used inside element call.
Default: 1
font: Option<String>
The font to use, to adapt to the system font.
encryption: EncryptionSystem
The encryption system to use.
Use EncryptionSystem::Unencrypted
to disable encryption.
posthog_user_id: Option<String>
Can be used to pass a PostHog id to element call.
posthog_api_host: Option<String>
The host of the posthog api. This is only used by the embedded package of Element Call.
posthog_api_key: Option<String>
The key for the posthog api. This is only used by the embedded package of Element Call.
rageshake_submit_url: Option<String>
The url to use for submitting rageshakes. This is only used by the embedded package of Element Call.
sentry_dsn: Option<String>
Sentry DSN This is only used by the embedded package of Element Call.
sentry_environment: Option<String>
Sentry environment This is only used by the embedded package of Element Call.
Trait Implementations§
Source§impl Clone for VirtualElementCallWidgetProperties
impl Clone for VirtualElementCallWidgetProperties
Source§fn clone(&self) -> VirtualElementCallWidgetProperties
fn clone(&self) -> VirtualElementCallWidgetProperties
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl<UT> ConvertError<UT> for VirtualElementCallWidgetProperties
impl<UT> ConvertError<UT> for VirtualElementCallWidgetProperties
fn try_convert_unexpected_callback_error( e: UnexpectedUniFFICallbackError, ) -> Result<Self>
Source§impl Default for VirtualElementCallWidgetProperties
impl Default for VirtualElementCallWidgetProperties
Source§fn default() -> VirtualElementCallWidgetProperties
fn default() -> VirtualElementCallWidgetProperties
Source§impl<UT> FfiConverter<UT> for VirtualElementCallWidgetProperties
impl<UT> FfiConverter<UT> for VirtualElementCallWidgetProperties
Source§const TYPE_ID_META: MetadataBuffer
const TYPE_ID_META: MetadataBuffer
Source§type FfiType = RustBuffer
type FfiType = RustBuffer
Source§fn lower(v: Self) -> RustBuffer
fn lower(v: Self) -> RustBuffer
Source§fn try_lift(buf: RustBuffer) -> Result<Self>
fn try_lift(buf: RustBuffer) -> Result<Self>
Source§impl<UT> Lift<UT> for VirtualElementCallWidgetProperties
impl<UT> Lift<UT> for VirtualElementCallWidgetProperties
Source§impl<UT> LiftRef<UT> for VirtualElementCallWidgetProperties
impl<UT> LiftRef<UT> for VirtualElementCallWidgetProperties
Source§impl<UT> LiftReturn<UT> for VirtualElementCallWidgetProperties
impl<UT> LiftReturn<UT> for VirtualElementCallWidgetProperties
Source§type ReturnType = <VirtualElementCallWidgetProperties as Lift<UT>>::FfiType
type ReturnType = <VirtualElementCallWidgetProperties as Lift<UT>>::FfiType
Source§fn try_lift_successful_return(v: Self::ReturnType) -> Result<Self>
fn try_lift_successful_return(v: Self::ReturnType) -> Result<Self>
Source§fn lift_foreign_return(
ffi_return: Self::ReturnType,
call_status: RustCallStatus,
) -> Self
fn lift_foreign_return( ffi_return: Self::ReturnType, call_status: RustCallStatus, ) -> Self
Source§fn lift_error(_buf: RustBuffer) -> Self
fn lift_error(_buf: RustBuffer) -> Self
Source§fn handle_callback_unexpected_error(e: UnexpectedUniFFICallbackError) -> Self
fn handle_callback_unexpected_error(e: UnexpectedUniFFICallbackError) -> Self
Source§impl<UT> Lower<UT> for VirtualElementCallWidgetProperties
impl<UT> Lower<UT> for VirtualElementCallWidgetProperties
type FfiType = <VirtualElementCallWidgetProperties as FfiConverter<UT>>::FfiType
fn lower(obj: Self) -> Self::FfiType
fn write(obj: Self, buf: &mut Vec<u8>)
Source§fn lower_into_rust_buffer(obj: Self) -> RustBuffer
fn lower_into_rust_buffer(obj: Self) -> RustBuffer
Source§impl<UT> LowerError<UT> for VirtualElementCallWidgetProperties
impl<UT> LowerError<UT> for VirtualElementCallWidgetProperties
Source§fn lower_error(obj: Self) -> RustBuffer
fn lower_error(obj: Self) -> RustBuffer
Source§impl<UT> LowerReturn<UT> for VirtualElementCallWidgetProperties
impl<UT> LowerReturn<UT> for VirtualElementCallWidgetProperties
Source§type ReturnType = <VirtualElementCallWidgetProperties as Lower<UT>>::FfiType
type ReturnType = <VirtualElementCallWidgetProperties as Lower<UT>>::FfiType
Source§fn lower_return(obj: Self) -> Result<Self::ReturnType, RustBuffer>
fn lower_return(obj: Self) -> Result<Self::ReturnType, RustBuffer>
Source§impl<UT> TypeId<UT> for VirtualElementCallWidgetProperties
impl<UT> TypeId<UT> for VirtualElementCallWidgetProperties
Auto Trait Implementations§
impl Freeze for VirtualElementCallWidgetProperties
impl RefUnwindSafe for VirtualElementCallWidgetProperties
impl Send for VirtualElementCallWidgetProperties
impl Sync for VirtualElementCallWidgetProperties
impl Unpin for VirtualElementCallWidgetProperties
impl UnwindSafe for VirtualElementCallWidgetProperties
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> CompatExt for T
impl<T> CompatExt for T
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
, which can then be
downcast
into Box<dyn ConcreteType>
where ConcreteType
implements Trait
.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
, which can then be further
downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.Source§impl<T> DowncastSend for T
impl<T> DowncastSend for T
Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
Source§fn consume_handle(handle: Handle) -> Arc<T>
fn consume_handle(handle: Handle) -> Arc<T>
Arc<>
Source§impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
Source§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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