pub struct ProviderEmbed {
pub embed_url: String,
pub allow: &'static str,
pub sandbox: &'static str,
pub allowfullscreen: bool,
pub provider_name: &'static str,
}Expand description
Provider-specific iframe configuration for a matched URL.
Fields§
§embed_url: StringCanonical embed URL (may differ from the input URL).
allow: &'static strValue for the allow= attribute. Empty string → attribute omitted.
sandbox: &'static strValue for the sandbox= attribute. Empty string → attribute omitted.
allowfullscreen: boolWhether to emit the boolean allowfullscreen attribute.
provider_name: &'static strLowercase provider name emitted as data-provider="…". Empty → omitted.
Trait Implementations§
Source§impl Clone for ProviderEmbed
impl Clone for ProviderEmbed
Source§fn clone(&self) -> ProviderEmbed
fn clone(&self) -> ProviderEmbed
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 ProviderEmbed
impl Debug for ProviderEmbed
Source§impl PartialEq for ProviderEmbed
impl PartialEq for ProviderEmbed
impl StructuralPartialEq for ProviderEmbed
Auto Trait Implementations§
impl Freeze for ProviderEmbed
impl RefUnwindSafe for ProviderEmbed
impl Send for ProviderEmbed
impl Sync for ProviderEmbed
impl Unpin for ProviderEmbed
impl UnsafeUnpin for ProviderEmbed
impl UnwindSafe for ProviderEmbed
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