pub struct EntityFieldDescription { /* private fields */ }Expand description
EntityFieldDescription
One field entry in a describe payload.
Implementations§
Source§impl EntityFieldDescription
impl EntityFieldDescription
Sourcepub fn new(
name: String,
slot: Option<u16>,
kind: String,
nullable: bool,
primary_key: bool,
queryable: bool,
origin: String,
insert_omission: Option<String>,
insert_default: Option<String>,
insert_default_bytes: Option<u32>,
insert_default_hash: Option<String>,
introduced_in_layout: Option<u32>,
historical_fill: Option<String>,
historical_fill_bytes: Option<u32>,
historical_fill_hash: Option<String>,
) -> Self
pub fn new( name: String, slot: Option<u16>, kind: String, nullable: bool, primary_key: bool, queryable: bool, origin: String, insert_omission: Option<String>, insert_default: Option<String>, insert_default_bytes: Option<u32>, insert_default_hash: Option<String>, introduced_in_layout: Option<u32>, historical_fill: Option<String>, historical_fill_bytes: Option<u32>, historical_fill_hash: Option<String>, ) -> Self
Construct one field description entry.
Sourcepub const fn primary_key(&self) -> bool
pub const fn primary_key(&self) -> bool
Return whether this field is the primary key.
Sourcepub fn insert_omission(&self) -> Option<&str>
pub fn insert_omission(&self) -> Option<&str>
Borrow the accepted insert-omission policy label for a top-level field.
Sourcepub fn insert_default(&self) -> Option<&str>
pub fn insert_default(&self) -> Option<&str>
Borrow the bounded canonical accepted insert-default rendering.
Sourcepub const fn insert_default_bytes(&self) -> Option<u32>
pub const fn insert_default_bytes(&self) -> Option<u32>
Return the accepted insert-default payload byte count.
Sourcepub fn insert_default_hash(&self) -> Option<&str>
pub fn insert_default_hash(&self) -> Option<&str>
Borrow the stable accepted insert-default payload hash.
Sourcepub const fn introduced_in_layout(&self) -> Option<u32>
pub const fn introduced_in_layout(&self) -> Option<u32>
Return the row layout that first physically contained this field.
Sourcepub fn historical_fill(&self) -> Option<&str>
pub fn historical_fill(&self) -> Option<&str>
Borrow the accepted frozen historical-absence rendering.
Sourcepub const fn historical_fill_bytes(&self) -> Option<u32>
pub const fn historical_fill_bytes(&self) -> Option<u32>
Return the historical-fill payload byte count when one is stored.
Sourcepub fn historical_fill_hash(&self) -> Option<&str>
pub fn historical_fill_hash(&self) -> Option<&str>
Borrow the stable historical-fill payload hash.
Trait Implementations§
Source§impl CandidType for EntityFieldDescription
impl CandidType for EntityFieldDescription
Source§impl Clone for EntityFieldDescription
impl Clone for EntityFieldDescription
Source§fn clone(&self) -> EntityFieldDescription
fn clone(&self) -> EntityFieldDescription
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EntityFieldDescription
impl Debug for EntityFieldDescription
Source§impl<'de> Deserialize<'de> for EntityFieldDescription
impl<'de> Deserialize<'de> for EntityFieldDescription
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for EntityFieldDescription
Source§impl PartialEq for EntityFieldDescription
impl PartialEq for EntityFieldDescription
impl StructuralPartialEq for EntityFieldDescription
Auto Trait Implementations§
impl Freeze for EntityFieldDescription
impl RefUnwindSafe for EntityFieldDescription
impl Send for EntityFieldDescription
impl Sync for EntityFieldDescription
impl Unpin for EntityFieldDescription
impl UnsafeUnpin for EntityFieldDescription
impl UnwindSafe for EntityFieldDescription
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
Mutably borrows from an owned value. Read more