#[non_exhaustive]pub struct CodegenGenericDataRelationshipTypeBuilder { /* private fields */ }Expand description
A builder for CodegenGenericDataRelationshipType.
Implementations§
source§impl CodegenGenericDataRelationshipTypeBuilder
impl CodegenGenericDataRelationshipTypeBuilder
sourcepub fn type(self, input: GenericDataRelationshipType) -> Self
pub fn type(self, input: GenericDataRelationshipType) -> Self
The data relationship type.
This field is required.sourcepub fn set_type(self, input: Option<GenericDataRelationshipType>) -> Self
pub fn set_type(self, input: Option<GenericDataRelationshipType>) -> Self
The data relationship type.
sourcepub fn get_type(&self) -> &Option<GenericDataRelationshipType>
pub fn get_type(&self) -> &Option<GenericDataRelationshipType>
The data relationship type.
The name of the related model in the data relationship.
This field is required.The name of the related model in the data relationship.
The name of the related model in the data relationship.
Appends an item to related_model_fields.
To override the contents of this collection use set_related_model_fields.
The related model fields in the data relationship.
The related model fields in the data relationship.
The related model fields in the data relationship.
sourcepub fn can_unlink_associated_model(self, input: bool) -> Self
pub fn can_unlink_associated_model(self, input: bool) -> Self
Specifies whether the relationship can unlink the associated model.
sourcepub fn set_can_unlink_associated_model(self, input: Option<bool>) -> Self
pub fn set_can_unlink_associated_model(self, input: Option<bool>) -> Self
Specifies whether the relationship can unlink the associated model.
sourcepub fn get_can_unlink_associated_model(&self) -> &Option<bool>
pub fn get_can_unlink_associated_model(&self) -> &Option<bool>
Specifies whether the relationship can unlink the associated model.
The name of the related join field in the data relationship.
The name of the related join field in the data relationship.
The name of the related join field in the data relationship.
The name of the related join table in the data relationship.
The name of the related join table in the data relationship.
The name of the related join table in the data relationship.
The value of the belongsTo field on the related data model.
The value of the belongsTo field on the related data model.
The value of the belongsTo field on the related data model.
sourcepub fn associated_fields(self, input: impl Into<String>) -> Self
pub fn associated_fields(self, input: impl Into<String>) -> Self
Appends an item to associated_fields.
To override the contents of this collection use set_associated_fields.
The associated fields of the data relationship.
sourcepub fn set_associated_fields(self, input: Option<Vec<String>>) -> Self
pub fn set_associated_fields(self, input: Option<Vec<String>>) -> Self
The associated fields of the data relationship.
sourcepub fn get_associated_fields(&self) -> &Option<Vec<String>>
pub fn get_associated_fields(&self) -> &Option<Vec<String>>
The associated fields of the data relationship.
sourcepub fn is_has_many_index(self, input: bool) -> Self
pub fn is_has_many_index(self, input: bool) -> Self
Specifies whether the @index directive is supported for a hasMany data relationship.
sourcepub fn set_is_has_many_index(self, input: Option<bool>) -> Self
pub fn set_is_has_many_index(self, input: Option<bool>) -> Self
Specifies whether the @index directive is supported for a hasMany data relationship.
sourcepub fn get_is_has_many_index(&self) -> &Option<bool>
pub fn get_is_has_many_index(&self) -> &Option<bool>
Specifies whether the @index directive is supported for a hasMany data relationship.
sourcepub fn build(self) -> Result<CodegenGenericDataRelationshipType, BuildError>
pub fn build(self) -> Result<CodegenGenericDataRelationshipType, BuildError>
Consumes the builder and constructs a CodegenGenericDataRelationshipType.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for CodegenGenericDataRelationshipTypeBuilder
impl Clone for CodegenGenericDataRelationshipTypeBuilder
source§fn clone(&self) -> CodegenGenericDataRelationshipTypeBuilder
fn clone(&self) -> CodegenGenericDataRelationshipTypeBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for CodegenGenericDataRelationshipTypeBuilder
impl Default for CodegenGenericDataRelationshipTypeBuilder
source§fn default() -> CodegenGenericDataRelationshipTypeBuilder
fn default() -> CodegenGenericDataRelationshipTypeBuilder
source§impl PartialEq for CodegenGenericDataRelationshipTypeBuilder
impl PartialEq for CodegenGenericDataRelationshipTypeBuilder
source§fn eq(&self, other: &CodegenGenericDataRelationshipTypeBuilder) -> bool
fn eq(&self, other: &CodegenGenericDataRelationshipTypeBuilder) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for CodegenGenericDataRelationshipTypeBuilder
Auto Trait Implementations§
impl Freeze for CodegenGenericDataRelationshipTypeBuilder
impl RefUnwindSafe for CodegenGenericDataRelationshipTypeBuilder
impl Send for CodegenGenericDataRelationshipTypeBuilder
impl Sync for CodegenGenericDataRelationshipTypeBuilder
impl Unpin for CodegenGenericDataRelationshipTypeBuilder
impl UnwindSafe for CodegenGenericDataRelationshipTypeBuilder
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