#[non_exhaustive]pub struct RuntimeEntitySchema {
pub entity: String,
pub fields: Vec<Field>,
/* private fields */
}Expand description
Schema of a runtime entity.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.entity: StringOutput only. Name of the entity.
fields: Vec<Field>Output only. List of fields in the entity.
Implementations§
Source§impl RuntimeEntitySchema
impl RuntimeEntitySchema
pub fn new() -> Self
Sourcepub fn set_entity<T: Into<String>>(self, v: T) -> Self
pub fn set_entity<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_fields<T, V>(self, v: T) -> Self
pub fn set_fields<T, V>(self, v: T) -> Self
Trait Implementations§
Source§impl Clone for RuntimeEntitySchema
impl Clone for RuntimeEntitySchema
Source§fn clone(&self) -> RuntimeEntitySchema
fn clone(&self) -> RuntimeEntitySchema
Returns a duplicate of the value. Read more
1.0.0 · 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 RuntimeEntitySchema
impl Debug for RuntimeEntitySchema
Source§impl Default for RuntimeEntitySchema
impl Default for RuntimeEntitySchema
Source§fn default() -> RuntimeEntitySchema
fn default() -> RuntimeEntitySchema
Returns the “default value” for a type. Read more
Source§impl Message for RuntimeEntitySchema
impl Message for RuntimeEntitySchema
Source§impl PartialEq for RuntimeEntitySchema
impl PartialEq for RuntimeEntitySchema
impl StructuralPartialEq for RuntimeEntitySchema
Auto Trait Implementations§
impl Freeze for RuntimeEntitySchema
impl RefUnwindSafe for RuntimeEntitySchema
impl Send for RuntimeEntitySchema
impl Sync for RuntimeEntitySchema
impl Unpin for RuntimeEntitySchema
impl UnsafeUnpin for RuntimeEntitySchema
impl UnwindSafe for RuntimeEntitySchema
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