#[non_exhaustive]pub struct CustomActionUrlOperationBuilder { /* private fields */ }Expand description
A builder for CustomActionUrlOperation.
Implementations§
source§impl CustomActionUrlOperationBuilder
impl CustomActionUrlOperationBuilder
sourcepub fn url_template(self, input: impl Into<String>) -> Self
pub fn url_template(self, input: impl Into<String>) -> Self
THe URL link of the CustomActionURLOperation.
sourcepub fn set_url_template(self, input: Option<String>) -> Self
pub fn set_url_template(self, input: Option<String>) -> Self
THe URL link of the CustomActionURLOperation.
sourcepub fn get_url_template(&self) -> &Option<String>
pub fn get_url_template(&self) -> &Option<String>
THe URL link of the CustomActionURLOperation.
sourcepub fn url_target(self, input: UrlTargetConfiguration) -> Self
pub fn url_target(self, input: UrlTargetConfiguration) -> Self
The target of the CustomActionURLOperation.
Valid values are defined as follows:
-
NEW_TAB: Opens the target URL in a new browser tab. -
NEW_WINDOW: Opens the target URL in a new browser window. -
SAME_TAB: Opens the target URL in the same browser tab.
sourcepub fn set_url_target(self, input: Option<UrlTargetConfiguration>) -> Self
pub fn set_url_target(self, input: Option<UrlTargetConfiguration>) -> Self
The target of the CustomActionURLOperation.
Valid values are defined as follows:
-
NEW_TAB: Opens the target URL in a new browser tab. -
NEW_WINDOW: Opens the target URL in a new browser window. -
SAME_TAB: Opens the target URL in the same browser tab.
sourcepub fn get_url_target(&self) -> &Option<UrlTargetConfiguration>
pub fn get_url_target(&self) -> &Option<UrlTargetConfiguration>
The target of the CustomActionURLOperation.
Valid values are defined as follows:
-
NEW_TAB: Opens the target URL in a new browser tab. -
NEW_WINDOW: Opens the target URL in a new browser window. -
SAME_TAB: Opens the target URL in the same browser tab.
sourcepub fn build(self) -> Result<CustomActionUrlOperation, BuildError>
pub fn build(self) -> Result<CustomActionUrlOperation, BuildError>
Consumes the builder and constructs a CustomActionUrlOperation.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for CustomActionUrlOperationBuilder
impl Clone for CustomActionUrlOperationBuilder
source§fn clone(&self) -> CustomActionUrlOperationBuilder
fn clone(&self) -> CustomActionUrlOperationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for CustomActionUrlOperationBuilder
impl Default for CustomActionUrlOperationBuilder
source§fn default() -> CustomActionUrlOperationBuilder
fn default() -> CustomActionUrlOperationBuilder
source§impl PartialEq for CustomActionUrlOperationBuilder
impl PartialEq for CustomActionUrlOperationBuilder
source§fn eq(&self, other: &CustomActionUrlOperationBuilder) -> bool
fn eq(&self, other: &CustomActionUrlOperationBuilder) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for CustomActionUrlOperationBuilder
Auto Trait Implementations§
impl Freeze for CustomActionUrlOperationBuilder
impl RefUnwindSafe for CustomActionUrlOperationBuilder
impl Send for CustomActionUrlOperationBuilder
impl Sync for CustomActionUrlOperationBuilder
impl Unpin for CustomActionUrlOperationBuilder
impl UnwindSafe for CustomActionUrlOperationBuilder
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