pub struct ObjectDefinition { /* private fields */ }Implementations§
Source§impl ObjectDefinition
impl ObjectDefinition
pub fn retention(&self) -> ObjectRetention
pub fn schema(&self) -> Result<SchemaKey, Error>
pub fn declaration(&self) -> Definition
pub fn graph(&self, settings: &SchemaSettings) -> Result<Schema, Error>
pub fn validate_admitted( &self, value: &ObjectValue, payload: NonZero<usize>, allowance: usize, ) -> Result<(), Error>
Trait Implementations§
Source§impl Clone for ObjectDefinition
impl Clone for ObjectDefinition
Source§fn clone(&self) -> ObjectDefinition
fn clone(&self) -> ObjectDefinition
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 moreimpl Copy for ObjectDefinition
Auto Trait Implementations§
impl Freeze for ObjectDefinition
impl RefUnwindSafe for ObjectDefinition
impl Send for ObjectDefinition
impl Sync for ObjectDefinition
impl Unpin for ObjectDefinition
impl UnsafeUnpin for ObjectDefinition
impl UnwindSafe for ObjectDefinition
Blanket Implementations§
impl<T> Allocation for T
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