pub type ScalarField = Zipper<ScalarFieldId>;

Aliased Type§

struct ScalarField {
    pub id: ScalarFieldId,
    pub dm: InternalDataModel,
}

Fields§

§id: ScalarFieldId§dm: InternalDataModel

Implementations§

source§

impl ScalarField

source

pub fn is_id(&self) -> bool

source

pub fn is_list(&self) -> bool

source

pub fn is_required(&self) -> bool

source

pub fn unique(&self) -> bool

source

pub fn db_name(&self) -> &str

source

pub fn type_identifier_with_arity(&self) -> (TypeIdentifier, FieldArity)

source

pub fn is_read_only(&self) -> bool

source

pub fn is_numeric(&self) -> bool

source

pub fn container(&self) -> ParentContainer

source

pub fn borrowed_name<'a>(&self, schema: &'a ValidatedSchema) -> &'a str

source

pub fn name(&self) -> &str

source

pub fn type_identifier(&self) -> TypeIdentifier

source

pub fn arity(&self) -> FieldArity

source

pub fn internal_enum(&self) -> Option<InternalEnum>

source

pub fn default_value(&self) -> Option<DefaultKind>

source

pub fn is_updated_at(&self) -> bool

source

pub fn is_auto_generated_int_id(&self) -> bool

source

pub fn native_type(&self) -> Option<NativeTypeInstance>

source

pub fn parse_json_datetime( &self, value: &str ) -> ParseResult<DateTime<FixedOffset>>

source

pub fn parse_json_bytes(&self, value: &str) -> PrismaValueResult<Vec<u8>>

source

pub fn is_autoincrement(&self) -> bool

Trait Implementations§

source§

impl Debug for ScalarField

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for ScalarField

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl ScalarListCompare for ScalarField

source§

fn contains_element<T>(&self, value: T) -> Filterwhere T: Into<ConditionValue>,

source§

fn contains_every_element<T>(&self, values: T) -> Filterwhere T: Into<ConditionListValue>,

source§

fn contains_some_element<T>(&self, values: T) -> Filterwhere T: Into<ConditionListValue>,

source§

fn is_empty_list(&self, b: bool) -> Filter