#[non_exhaustive]pub struct CustomContentConfiguration {
    pub content_url: Option<String>,
    pub content_type: Option<CustomContentType>,
    pub image_scaling: Option<CustomContentImageScalingConfiguration>,
    pub interactions: Option<VisualInteractionOptions>,
}Expand description
The configuration of a CustomContentVisual.
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.content_url: Option<String>The input URL that links to the custom content that you want in the custom visual.
content_type: Option<CustomContentType>The content type of the custom content visual. You can use this to have the visual render as an image.
image_scaling: Option<CustomContentImageScalingConfiguration>The sizing options for the size of the custom content visual. This structure is required when the ContentType of the visual is 'IMAGE'.
interactions: Option<VisualInteractionOptions>The general visual interactions setup for a visual.
Implementations§
source§impl CustomContentConfiguration
 
impl CustomContentConfiguration
sourcepub fn content_url(&self) -> Option<&str>
 
pub fn content_url(&self) -> Option<&str>
The input URL that links to the custom content that you want in the custom visual.
sourcepub fn content_type(&self) -> Option<&CustomContentType>
 
pub fn content_type(&self) -> Option<&CustomContentType>
The content type of the custom content visual. You can use this to have the visual render as an image.
sourcepub fn image_scaling(&self) -> Option<&CustomContentImageScalingConfiguration>
 
pub fn image_scaling(&self) -> Option<&CustomContentImageScalingConfiguration>
The sizing options for the size of the custom content visual. This structure is required when the ContentType of the visual is 'IMAGE'.
sourcepub fn interactions(&self) -> Option<&VisualInteractionOptions>
 
pub fn interactions(&self) -> Option<&VisualInteractionOptions>
The general visual interactions setup for a visual.
source§impl CustomContentConfiguration
 
impl CustomContentConfiguration
sourcepub fn builder() -> CustomContentConfigurationBuilder
 
pub fn builder() -> CustomContentConfigurationBuilder
Creates a new builder-style object to manufacture CustomContentConfiguration.
Trait Implementations§
source§impl Clone for CustomContentConfiguration
 
impl Clone for CustomContentConfiguration
source§fn clone(&self) -> CustomContentConfiguration
 
fn clone(&self) -> CustomContentConfiguration
1.0.0 · source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for CustomContentConfiguration
 
impl Debug for CustomContentConfiguration
source§impl PartialEq for CustomContentConfiguration
 
impl PartialEq for CustomContentConfiguration
source§fn eq(&self, other: &CustomContentConfiguration) -> bool
 
fn eq(&self, other: &CustomContentConfiguration) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for CustomContentConfiguration
Auto Trait Implementations§
impl Freeze for CustomContentConfiguration
impl RefUnwindSafe for CustomContentConfiguration
impl Send for CustomContentConfiguration
impl Sync for CustomContentConfiguration
impl Unpin for CustomContentConfiguration
impl UnwindSafe for CustomContentConfiguration
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,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
 
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)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