pub struct Prepared {
pub id: DefinitionId,
pub version: u32,
pub payload: Value,
}Fields§
§id: DefinitionId§version: u32§payload: ValueImplementations§
Source§impl Prepared
impl Prepared
pub fn encode(value: &impl CatalogCodec) -> Result<Prepared, PreparationError>
pub fn typed_record( value: &impl CatalogCodec, ) -> Result<Prepared, PreparationError>
pub fn system(fact: &SystemFact) -> Result<Prepared, PreparationError>
pub fn bytes(&self) -> Result<usize, PreparationError>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Prepared
impl<'de> Deserialize<'de> for Prepared
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Prepared, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Prepared, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Prepared
Source§impl Serialize for Prepared
impl Serialize for Prepared
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for Prepared
Auto Trait Implementations§
impl Freeze for Prepared
impl RefUnwindSafe for Prepared
impl Send for Prepared
impl Sync for Prepared
impl Unpin for Prepared
impl UnsafeUnpin for Prepared
impl UnwindSafe for Prepared
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