#[non_exhaustive]pub struct CustomContentConfiguration { /* private fields */ }Expand description
The configuration of a CustomContentVisual.
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
Returns a copy of the value. Read more
1.0.0 · 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 CustomContentConfiguration
impl Debug for CustomContentConfiguration
source§impl PartialEq<CustomContentConfiguration> for CustomContentConfiguration
impl PartialEq<CustomContentConfiguration> for CustomContentConfiguration
source§fn eq(&self, other: &CustomContentConfiguration) -> bool
fn eq(&self, other: &CustomContentConfiguration) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for CustomContentConfiguration
Auto Trait Implementations§
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
Mutably borrows from an owned value. Read more