#[non_exhaustive]pub struct CustomContentConfiguration {
    pub content_url: Option<String>,
    pub content_type: Option<CustomContentType>,
    pub image_scaling: Option<CustomContentImageScalingConfiguration>,
}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'.
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'.
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 ==.