#[repr(transparent)]pub struct TypedId<const N: usize>(pub(crate) u32);Tuple Fields§
§0: u32Implementations§
Source§impl<const N: usize> TypedId<N>
impl<const N: usize> TypedId<N>
pub const fn new(inner: u32) -> Self
pub fn as_raw_id(self) -> u32
pub fn as_i32_id(self) -> i32
pub const fn placeholder() -> Self
pub fn is_placeholder(&self) -> bool
fn from_i32(inner: i32) -> Self
fn to_i32(self) -> i32
pub fn raw_slice(slice: &[Self]) -> &[u32]
pub fn mut_raw_vec(vec: &mut Vec<Self>) -> &mut Vec<u32>
pub fn raw_hash_map_ref<V>(map: &HashMap<Self, V>) -> &HashMap<u32, V>
pub fn raw_hash_map_mut_ref<V>( map: &mut HashMap<Self, V>, ) -> &mut HashMap<u32, V>
pub fn raw_btree_map_ref<V>(map: &BTreeMap<Self, V>) -> &BTreeMap<u32, V>
pub fn raw_btree_map_mut_ref<V>( map: &mut BTreeMap<Self, V>, ) -> &mut BTreeMap<u32, V>
Source§impl TypedId<2>
impl TypedId<2>
pub fn as_sink_id(self) -> SinkId
pub fn as_index_id(self) -> IndexId
pub fn as_subscriber_id(self) -> SubscriberId
pub fn as_mv_table_id(self) -> TableId
Source§impl TypedId<10>
impl TypedId<10>
pub fn as_subscriber_id(self) -> SubscriberId
Source§impl TypedId<256>
impl TypedId<256>
pub fn as_database_id(self) -> DatabaseId
pub fn as_table_id(self) -> TableId
pub fn as_schema_id(self) -> SchemaId
pub fn as_sink_id(self) -> SinkId
pub fn as_source_id(self) -> SourceId
pub fn as_job_id(self) -> JobId
pub fn as_subscription_id(self) -> SubscriptionId
pub fn as_index_id(self) -> IndexId
pub fn as_view_id(self) -> ViewId
pub fn as_function_id(self) -> FunctionId
pub fn as_connection_id(self) -> ConnectionId
pub fn as_secret_id(self) -> SecretId
Trait Implementations§
Source§impl<const N: usize> AddAssign<u32> for TypedId<N>
impl<const N: usize> AddAssign<u32> for TypedId<N>
Source§fn add_assign(&mut self, rhs: u32)
fn add_assign(&mut self, rhs: u32)
Performs the
+= operation. Read moreSource§impl<'de, const N: usize> Deserialize<'de> for TypedId<N>
impl<'de, const N: usize> Deserialize<'de> for TypedId<N>
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
Source§impl From<TypedId<1>> for OptionalAssociatedTableId
impl From<TypedId<1>> for OptionalAssociatedTableId
Source§impl From<TypedId<10>> for Object
impl From<TypedId<10>> for Object
Source§fn from(value: SubscriptionId) -> Self
fn from(value: SubscriptionId) -> Self
Converts to this type from the input type.
Source§impl From<TypedId<10>> for Object
impl From<TypedId<10>> for Object
Source§fn from(value: SubscriptionId) -> Self
fn from(value: SubscriptionId) -> Self
Converts to this type from the input type.
Source§impl From<TypedId<10>> for Object
impl From<TypedId<10>> for Object
Source§fn from(value: SubscriptionId) -> Self
fn from(value: SubscriptionId) -> Self
Converts to this type from the input type.
Source§impl From<TypedId<10>> for Object
impl From<TypedId<10>> for Object
Source§fn from(value: SubscriptionId) -> Self
fn from(value: SubscriptionId) -> Self
Converts to this type from the input type.
Source§impl From<TypedId<10>> for ObjectId
impl From<TypedId<10>> for ObjectId
Source§fn from(value: SubscriptionId) -> Self
fn from(value: SubscriptionId) -> Self
Converts to this type from the input type.
Source§impl From<TypedId<13>> for Object
impl From<TypedId<13>> for Object
Source§fn from(value: FunctionId) -> Self
fn from(value: FunctionId) -> Self
Converts to this type from the input type.
Source§impl From<TypedId<13>> for Object
impl From<TypedId<13>> for Object
Source§fn from(value: FunctionId) -> Self
fn from(value: FunctionId) -> Self
Converts to this type from the input type.
Source§impl From<TypedId<13>> for ObjectId
impl From<TypedId<13>> for ObjectId
Source§fn from(value: FunctionId) -> Self
fn from(value: FunctionId) -> Self
Converts to this type from the input type.
Source§impl From<TypedId<14>> for Object
impl From<TypedId<14>> for Object
Source§fn from(value: ConnectionId) -> Self
fn from(value: ConnectionId) -> Self
Converts to this type from the input type.
Source§impl From<TypedId<14>> for Object
impl From<TypedId<14>> for Object
Source§fn from(value: ConnectionId) -> Self
fn from(value: ConnectionId) -> Self
Converts to this type from the input type.
Source§impl From<TypedId<14>> for Object
impl From<TypedId<14>> for Object
Source§fn from(value: ConnectionId) -> Self
fn from(value: ConnectionId) -> Self
Converts to this type from the input type.
Source§impl From<TypedId<14>> for ObjectId
impl From<TypedId<14>> for ObjectId
Source§fn from(value: ConnectionId) -> Self
fn from(value: ConnectionId) -> Self
Converts to this type from the input type.
Source§impl From<TypedId<3>> for Object
impl From<TypedId<3>> for Object
Source§fn from(value: DatabaseId) -> Self
fn from(value: DatabaseId) -> Self
Converts to this type from the input type.
Source§impl From<TypedId<3>> for Object
impl From<TypedId<3>> for Object
Source§fn from(value: DatabaseId) -> Self
fn from(value: DatabaseId) -> Self
Converts to this type from the input type.
Source§impl From<TypedId<3>> for Object
impl From<TypedId<3>> for Object
Source§fn from(value: DatabaseId) -> Self
fn from(value: DatabaseId) -> Self
Converts to this type from the input type.
Source§impl From<TypedId<3>> for ObjectId
impl From<TypedId<3>> for ObjectId
Source§fn from(value: DatabaseId) -> Self
fn from(value: DatabaseId) -> Self
Converts to this type from the input type.
Source§impl From<TypedId<9>> for OptionalAssociatedSourceId
impl From<TypedId<9>> for OptionalAssociatedSourceId
Source§impl<const N: usize> Ord for TypedId<N>
impl<const N: usize> Ord for TypedId<N>
1.21.0 · 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<const N: usize> PartialOrd for TypedId<N>
impl<const N: usize> PartialOrd for TypedId<N>
Source§impl<const N: usize> TryFromU64 for TypedId<N>
impl<const N: usize> TryFromU64 for TypedId<N>
Source§fn try_from_u64(n: u64) -> Result<Self, DbErr>
fn try_from_u64(n: u64) -> Result<Self, DbErr>
The method to convert the type to a u64
Source§impl<const N: usize> TryGetable for TypedId<N>
impl<const N: usize> TryGetable for TypedId<N>
Source§fn try_get_by<I: ColIdx>(
res: &QueryResult,
index: I,
) -> Result<Self, TryGetError>
fn try_get_by<I: ColIdx>( res: &QueryResult, index: I, ) -> Result<Self, TryGetError>
Get a value from the query result with an ColIdx
§fn try_get(res: &QueryResult, pre: &str, col: &str) -> Result<Self, TryGetError>
fn try_get(res: &QueryResult, pre: &str, col: &str) -> Result<Self, TryGetError>
Get a value from the query result with prefixed column name
§fn try_get_by_index(
res: &QueryResult,
index: usize,
) -> Result<Self, TryGetError>
fn try_get_by_index( res: &QueryResult, index: usize, ) -> Result<Self, TryGetError>
Get a value from the query result based on the order in the select expressions
impl<const N: usize> Copy for TypedId<N>
impl<const N: usize> Eq for TypedId<N>
impl<const N: usize> StructuralPartialEq for TypedId<N>
Auto Trait Implementations§
impl<const N: usize> Freeze for TypedId<N>
impl<const N: usize> RefUnwindSafe for TypedId<N>
impl<const N: usize> Send for TypedId<N>
impl<const N: usize> Sync for TypedId<N>
impl<const N: usize> Unpin for TypedId<N>
impl<const N: usize> UnwindSafe for TypedId<N>
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<T> Downcast for Twhere
T: AsAny + ?Sized,
impl<T> Downcast for Twhere
T: AsAny + ?Sized,
§fn downcast_ref<T>(&self) -> Option<&T>where
T: AsAny,
fn downcast_ref<T>(&self) -> Option<&T>where
T: AsAny,
Forward to the method defined on the type
Any.§fn downcast_mut<T>(&mut self) -> Option<&mut T>where
T: AsAny,
fn downcast_mut<T>(&mut self) -> Option<&mut T>where
T: AsAny,
Forward to the method defined on the type
Any.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<T> ExprTrait for Twhere
T: Into<SimpleExpr>,
impl<T> ExprTrait for Twhere
T: Into<SimpleExpr>,
§fn as_enum<N>(self, type_name: N) -> SimpleExprwhere
N: IntoIden,
fn as_enum<N>(self, type_name: N) -> SimpleExprwhere
N: IntoIden,
Express a
AS enum expression. Read more§fn cast_as<N>(self, type_name: N) -> SimpleExprwhere
N: IntoIden,
fn cast_as<N>(self, type_name: N) -> SimpleExprwhere
N: IntoIden,
Express a
CAST AS expression. Read more§fn add<R>(self, right: R) -> SimpleExprwhere
R: Into<SimpleExpr>,
fn add<R>(self, right: R) -> SimpleExprwhere
R: Into<SimpleExpr>,
Express an arithmetic addition operation. Read more
fn and<R>(self, right: R) -> SimpleExprwhere
R: Into<SimpleExpr>,
§fn div<R>(self, right: R) -> SimpleExprwhere
R: Into<SimpleExpr>,
fn div<R>(self, right: R) -> SimpleExprwhere
R: Into<SimpleExpr>,
Express an arithmetic division operation. Read more
§fn eq<R>(self, right: R) -> SimpleExprwhere
R: Into<SimpleExpr>,
fn eq<R>(self, right: R) -> SimpleExprwhere
R: Into<SimpleExpr>,
Express an equal (
=) expression. Read more§fn equals<C>(self, col: C) -> SimpleExprwhere
C: IntoColumnRef,
fn equals<C>(self, col: C) -> SimpleExprwhere
C: IntoColumnRef,
Express a equal expression between two table columns,
you will mainly use this to relate identical value between two table columns. Read more
§fn gt<R>(self, right: R) -> SimpleExprwhere
R: Into<SimpleExpr>,
fn gt<R>(self, right: R) -> SimpleExprwhere
R: Into<SimpleExpr>,
Express a greater than (
>) expression. Read more§fn gte<R>(self, right: R) -> SimpleExprwhere
R: Into<SimpleExpr>,
fn gte<R>(self, right: R) -> SimpleExprwhere
R: Into<SimpleExpr>,
Express a greater than or equal (
>=) expression. Read more§fn in_subquery(self, sel: SelectStatement) -> SimpleExpr
fn in_subquery(self, sel: SelectStatement) -> SimpleExpr
Express a
IN sub-query expression. Read more§fn in_tuples<V, I>(self, v: I) -> SimpleExprwhere
V: IntoValueTuple,
I: IntoIterator<Item = V>,
fn in_tuples<V, I>(self, v: I) -> SimpleExprwhere
V: IntoValueTuple,
I: IntoIterator<Item = V>,
Express a
IN sub expression. Read more§fn is_in<V, I>(self, v: I) -> SimpleExprwhere
V: Into<SimpleExpr>,
I: IntoIterator<Item = V>,
fn is_in<V, I>(self, v: I) -> SimpleExprwhere
V: Into<SimpleExpr>,
I: IntoIterator<Item = V>,
Express a
IN expression. Read more§fn is_not<R>(self, right: R) -> SimpleExprwhere
R: Into<SimpleExpr>,
fn is_not<R>(self, right: R) -> SimpleExprwhere
R: Into<SimpleExpr>,
Express a
IS NOT expression. Read more§fn is_not_in<V, I>(self, v: I) -> SimpleExprwhere
V: Into<SimpleExpr>,
I: IntoIterator<Item = V>,
fn is_not_in<V, I>(self, v: I) -> SimpleExprwhere
V: Into<SimpleExpr>,
I: IntoIterator<Item = V>,
Express a
NOT IN expression. Read more§fn is_not_null(self) -> SimpleExpr
fn is_not_null(self) -> SimpleExpr
Express a
IS NOT NULL expression. Read more§fn left_shift<R>(self, right: R) -> SimpleExprwhere
R: Into<SimpleExpr>,
fn left_shift<R>(self, right: R) -> SimpleExprwhere
R: Into<SimpleExpr>,
Express a bitwise left shift. Read more
§fn lt<R>(self, right: R) -> SimpleExprwhere
R: Into<SimpleExpr>,
fn lt<R>(self, right: R) -> SimpleExprwhere
R: Into<SimpleExpr>,
Express a less than (
<) expression. Read more§fn lte<R>(self, right: R) -> SimpleExprwhere
R: Into<SimpleExpr>,
fn lte<R>(self, right: R) -> SimpleExprwhere
R: Into<SimpleExpr>,
Express a less than or equal (
<=) expression. Read more§fn modulo<R>(self, right: R) -> SimpleExprwhere
R: Into<SimpleExpr>,
fn modulo<R>(self, right: R) -> SimpleExprwhere
R: Into<SimpleExpr>,
Express an arithmetic modulo operation. Read more
§fn mul<R>(self, right: R) -> SimpleExprwhere
R: Into<SimpleExpr>,
fn mul<R>(self, right: R) -> SimpleExprwhere
R: Into<SimpleExpr>,
Express an arithmetic multiplication operation. Read more
§fn ne<R>(self, right: R) -> SimpleExprwhere
R: Into<SimpleExpr>,
fn ne<R>(self, right: R) -> SimpleExprwhere
R: Into<SimpleExpr>,
Express a not equal (
<>) expression. Read more§fn not_between<A, B>(self, a: A, b: B) -> SimpleExpr
fn not_between<A, B>(self, a: A, b: B) -> SimpleExpr
Express a
NOT BETWEEN expression. Read more§fn not_equals<C>(self, col: C) -> SimpleExprwhere
C: IntoColumnRef,
fn not_equals<C>(self, col: C) -> SimpleExprwhere
C: IntoColumnRef,
Express a not equal expression between two table columns,
you will mainly use this to relate identical value between two table columns. Read more
§fn not_in_subquery(self, sel: SelectStatement) -> SimpleExpr
fn not_in_subquery(self, sel: SelectStatement) -> SimpleExpr
Express a
NOT IN sub-query expression. Read more§fn not_like<L>(self, like: L) -> SimpleExprwhere
L: IntoLikeExpr,
fn not_like<L>(self, like: L) -> SimpleExprwhere
L: IntoLikeExpr,
Express a
NOT LIKE expression. Read more§fn or<R>(self, right: R) -> SimpleExprwhere
R: Into<SimpleExpr>,
fn or<R>(self, right: R) -> SimpleExprwhere
R: Into<SimpleExpr>,
Express a logical
OR operation. Read more§fn right_shift<R>(self, right: R) -> SimpleExprwhere
R: Into<SimpleExpr>,
fn right_shift<R>(self, right: R) -> SimpleExprwhere
R: Into<SimpleExpr>,
Express a bitwise right shift. Read more
§fn sub<R>(self, right: R) -> SimpleExprwhere
R: Into<SimpleExpr>,
fn sub<R>(self, right: R) -> SimpleExprwhere
R: Into<SimpleExpr>,
Express an arithmetic subtraction operation. Read more
§impl<V> FromValueTuple for Vwhere
V: Into<Value> + ValueType,
impl<V> FromValueTuple for Vwhere
V: Into<Value> + ValueType,
fn from_value_tuple<I>(i: I) -> Vwhere
I: IntoValueTuple,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request§impl<V> IntoValueTuple for Vwhere
V: Into<Value>,
impl<V> IntoValueTuple for Vwhere
V: Into<Value>,
fn into_value_tuple(self) -> ValueTuple
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§impl<V> PrimaryKeyArity for Vwhere
V: TryGetable,
impl<V> PrimaryKeyArity for Vwhere
V: TryGetable,
§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.
§impl<T> TryGetableMany for Twhere
T: TryGetable,
impl<T> TryGetableMany for Twhere
T: TryGetable,
§fn try_get_many(
res: &QueryResult,
pre: &str,
cols: &[String],
) -> Result<T, TryGetError>
fn try_get_many( res: &QueryResult, pre: &str, cols: &[String], ) -> Result<T, TryGetError>
Get a tuple value from the query result with prefixed column name
§fn try_get_many_by_index(res: &QueryResult) -> Result<T, TryGetError>
fn try_get_many_by_index(res: &QueryResult) -> Result<T, TryGetError>
Get a tuple value from the query result based on the order in the select expressions