#[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 interactions(self, input: VisualInteractionOptions) -> Self
pub fn interactions(self, input: VisualInteractionOptions) -> Self
The general visual interactions setup for a visual.
sourcepub fn set_interactions(self, input: Option<VisualInteractionOptions>) -> Self
pub fn set_interactions(self, input: Option<VisualInteractionOptions>) -> Self
The general visual interactions setup for a visual.
sourcepub fn get_interactions(&self) -> &Option<VisualInteractionOptions>
pub fn get_interactions(&self) -> &Option<VisualInteractionOptions>
The general visual interactions setup for a visual.
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 ==.impl StructuralPartialEq for CustomContentConfigurationBuilder
Auto Trait Implementations§
impl Freeze for CustomContentConfigurationBuilder
impl RefUnwindSafe for CustomContentConfigurationBuilder
impl Send for CustomContentConfigurationBuilder
impl Sync for CustomContentConfigurationBuilder
impl Unpin for CustomContentConfigurationBuilder
impl UnwindSafe for CustomContentConfigurationBuilder
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> 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