#[non_exhaustive]pub struct CustomContentConfigurationBuilder { /* private fields */ }
Expand description
A builder for CustomContentConfiguration
.
Implementations§
source§impl CustomContentConfigurationBuilder
impl CustomContentConfigurationBuilder
sourcepub fn content_url(self, input: impl Into<String>) -> Self
pub fn content_url(self, input: impl Into<String>) -> Self
The input URL that links to the custom content that you want in the custom visual.
sourcepub fn set_content_url(self, input: Option<String>) -> Self
pub fn set_content_url(self, input: Option<String>) -> Self
The input URL that links to the custom content that you want in the custom visual.
sourcepub fn get_content_url(&self) -> &Option<String>
pub fn get_content_url(&self) -> &Option<String>
The input URL that links to the custom content that you want in the custom visual.
sourcepub fn content_type(self, input: CustomContentType) -> Self
pub fn content_type(self, input: CustomContentType) -> Self
The content type of the custom content visual. You can use this to have the visual render as an image.
sourcepub fn set_content_type(self, input: Option<CustomContentType>) -> Self
pub fn set_content_type(self, input: Option<CustomContentType>) -> Self
The content type of the custom content visual. You can use this to have the visual render as an image.
sourcepub fn get_content_type(&self) -> &Option<CustomContentType>
pub fn get_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,
input: CustomContentImageScalingConfiguration
) -> Self
pub fn image_scaling( self, input: CustomContentImageScalingConfiguration ) -> Self
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 set_image_scaling(
self,
input: Option<CustomContentImageScalingConfiguration>
) -> Self
pub fn set_image_scaling( self, input: Option<CustomContentImageScalingConfiguration> ) -> Self
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 get_image_scaling(
&self
) -> &Option<CustomContentImageScalingConfiguration>
pub fn get_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 build(self) -> CustomContentConfiguration
pub fn build(self) -> CustomContentConfiguration
Consumes the builder and constructs a CustomContentConfiguration
.
Trait Implementations§
source§impl Clone for CustomContentConfigurationBuilder
impl Clone for CustomContentConfigurationBuilder
source§fn clone(&self) -> CustomContentConfigurationBuilder
fn clone(&self) -> CustomContentConfigurationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for CustomContentConfigurationBuilder
impl Default for CustomContentConfigurationBuilder
source§fn default() -> CustomContentConfigurationBuilder
fn default() -> CustomContentConfigurationBuilder
source§impl PartialEq for CustomContentConfigurationBuilder
impl PartialEq for CustomContentConfigurationBuilder
source§fn eq(&self, other: &CustomContentConfigurationBuilder) -> bool
fn eq(&self, other: &CustomContentConfigurationBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.