#[non_exhaustive]pub struct RenderingConfigurationBuilder { /* private fields */ }Expand description
A builder for RenderingConfiguration.
Implementations§
source§impl RenderingConfigurationBuilder
impl RenderingConfigurationBuilder
sourcepub fn template_uri(self, input: impl Into<String>) -> Self
pub fn template_uri(self, input: impl Into<String>) -> Self
A URI template containing exactly one variable in ${variableName} format. This can only be set for EXTERNAL knowledge bases. For Salesforce, ServiceNow, and Zendesk, the variable must be one of the following:
-
Salesforce:
Id,ArticleNumber,VersionNumber,Title,PublishStatus, orIsDeleted -
ServiceNow:
number,short_description,sys_mod_count,workflow_state, oractive -
Zendesk:
id,title,updated_at, ordraft
The variable is replaced with the actual value for a piece of content when calling GetContent.
sourcepub fn set_template_uri(self, input: Option<String>) -> Self
pub fn set_template_uri(self, input: Option<String>) -> Self
A URI template containing exactly one variable in ${variableName} format. This can only be set for EXTERNAL knowledge bases. For Salesforce, ServiceNow, and Zendesk, the variable must be one of the following:
-
Salesforce:
Id,ArticleNumber,VersionNumber,Title,PublishStatus, orIsDeleted -
ServiceNow:
number,short_description,sys_mod_count,workflow_state, oractive -
Zendesk:
id,title,updated_at, ordraft
The variable is replaced with the actual value for a piece of content when calling GetContent.
sourcepub fn get_template_uri(&self) -> &Option<String>
pub fn get_template_uri(&self) -> &Option<String>
A URI template containing exactly one variable in ${variableName} format. This can only be set for EXTERNAL knowledge bases. For Salesforce, ServiceNow, and Zendesk, the variable must be one of the following:
-
Salesforce:
Id,ArticleNumber,VersionNumber,Title,PublishStatus, orIsDeleted -
ServiceNow:
number,short_description,sys_mod_count,workflow_state, oractive -
Zendesk:
id,title,updated_at, ordraft
The variable is replaced with the actual value for a piece of content when calling GetContent.
sourcepub fn build(self) -> RenderingConfiguration
pub fn build(self) -> RenderingConfiguration
Consumes the builder and constructs a RenderingConfiguration.
Trait Implementations§
source§impl Clone for RenderingConfigurationBuilder
impl Clone for RenderingConfigurationBuilder
source§fn clone(&self) -> RenderingConfigurationBuilder
fn clone(&self) -> RenderingConfigurationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for RenderingConfigurationBuilder
impl Default for RenderingConfigurationBuilder
source§fn default() -> RenderingConfigurationBuilder
fn default() -> RenderingConfigurationBuilder
source§impl PartialEq for RenderingConfigurationBuilder
impl PartialEq for RenderingConfigurationBuilder
source§fn eq(&self, other: &RenderingConfigurationBuilder) -> bool
fn eq(&self, other: &RenderingConfigurationBuilder) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for RenderingConfigurationBuilder
Auto Trait Implementations§
impl Freeze for RenderingConfigurationBuilder
impl RefUnwindSafe for RenderingConfigurationBuilder
impl Send for RenderingConfigurationBuilder
impl Sync for RenderingConfigurationBuilder
impl Unpin for RenderingConfigurationBuilder
impl UnwindSafe for RenderingConfigurationBuilder
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)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