#[non_exhaustive]pub struct ObjectTypeFieldBuilder { /* private fields */ }
Expand description
A builder for ObjectTypeField
.
Implementations§
source§impl ObjectTypeFieldBuilder
impl ObjectTypeFieldBuilder
sourcepub fn source(self, input: impl Into<String>) -> Self
pub fn source(self, input: impl Into<String>) -> Self
A field of a ProfileObject. For example: _source.FirstName, where “_source” is a ProfileObjectType of a Zendesk user and “FirstName” is a field in that ObjectType.
sourcepub fn set_source(self, input: Option<String>) -> Self
pub fn set_source(self, input: Option<String>) -> Self
A field of a ProfileObject. For example: _source.FirstName, where “_source” is a ProfileObjectType of a Zendesk user and “FirstName” is a field in that ObjectType.
sourcepub fn get_source(&self) -> &Option<String>
pub fn get_source(&self) -> &Option<String>
A field of a ProfileObject. For example: _source.FirstName, where “_source” is a ProfileObjectType of a Zendesk user and “FirstName” is a field in that ObjectType.
sourcepub fn target(self, input: impl Into<String>) -> Self
pub fn target(self, input: impl Into<String>) -> Self
The location of the data in the standard ProfileObject model. For example: _profile.Address.PostalCode.
sourcepub fn set_target(self, input: Option<String>) -> Self
pub fn set_target(self, input: Option<String>) -> Self
The location of the data in the standard ProfileObject model. For example: _profile.Address.PostalCode.
sourcepub fn get_target(&self) -> &Option<String>
pub fn get_target(&self) -> &Option<String>
The location of the data in the standard ProfileObject model. For example: _profile.Address.PostalCode.
sourcepub fn content_type(self, input: FieldContentType) -> Self
pub fn content_type(self, input: FieldContentType) -> Self
The content type of the field. Used for determining equality when searching.
sourcepub fn set_content_type(self, input: Option<FieldContentType>) -> Self
pub fn set_content_type(self, input: Option<FieldContentType>) -> Self
The content type of the field. Used for determining equality when searching.
sourcepub fn get_content_type(&self) -> &Option<FieldContentType>
pub fn get_content_type(&self) -> &Option<FieldContentType>
The content type of the field. Used for determining equality when searching.
sourcepub fn build(self) -> ObjectTypeField
pub fn build(self) -> ObjectTypeField
Consumes the builder and constructs a ObjectTypeField
.
Trait Implementations§
source§impl Clone for ObjectTypeFieldBuilder
impl Clone for ObjectTypeFieldBuilder
source§fn clone(&self) -> ObjectTypeFieldBuilder
fn clone(&self) -> ObjectTypeFieldBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ObjectTypeFieldBuilder
impl Debug for ObjectTypeFieldBuilder
source§impl Default for ObjectTypeFieldBuilder
impl Default for ObjectTypeFieldBuilder
source§fn default() -> ObjectTypeFieldBuilder
fn default() -> ObjectTypeFieldBuilder
source§impl PartialEq for ObjectTypeFieldBuilder
impl PartialEq for ObjectTypeFieldBuilder
source§fn eq(&self, other: &ObjectTypeFieldBuilder) -> bool
fn eq(&self, other: &ObjectTypeFieldBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ObjectTypeFieldBuilder
Auto Trait Implementations§
impl Freeze for ObjectTypeFieldBuilder
impl RefUnwindSafe for ObjectTypeFieldBuilder
impl Send for ObjectTypeFieldBuilder
impl Sync for ObjectTypeFieldBuilder
impl Unpin for ObjectTypeFieldBuilder
impl UnwindSafe for ObjectTypeFieldBuilder
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