pub struct ProductId(/* private fields */);Expand description
Strongly-typed product identifier.
Implementations§
Trait Implementations§
impl Copy for ProductId
Source§impl<'de> Deserialize<'de> for ProductId
impl<'de> Deserialize<'de> for ProductId
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ProductId, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ProductId, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ProductId
Source§impl FromSql for ProductId
Available on crate feature rusqlite only.
impl FromSql for ProductId
Available on crate feature
rusqlite only.Source§fn column_result(value: ValueRef<'_>) -> Result<ProductId, FromSqlError>
fn column_result(value: ValueRef<'_>) -> Result<ProductId, FromSqlError>
Converts SQLite value into Rust value.
Source§impl Ord for ProductId
impl Ord for ProductId
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for ProductId
impl PartialOrd for ProductId
Source§impl Serialize for ProductId
impl Serialize for ProductId
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 ProductId
Auto Trait Implementations§
impl Freeze for ProductId
impl RefUnwindSafe for ProductId
impl Send for ProductId
impl Sync for ProductId
impl Unpin for ProductId
impl UnsafeUnpin for ProductId
impl UnwindSafe for ProductId
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> SqlFnOutput for Twhere
T: ToSql,
impl<T> SqlFnOutput for Twhere
T: ToSql,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.