#[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<RenderingConfigurationBuilder> for RenderingConfigurationBuilder
impl PartialEq<RenderingConfigurationBuilder> 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 ==
.