pub struct ValidShardedId<T>(/* private fields */);
Implementations§
Source§impl<T> ValidShardedId<T>
impl<T> ValidShardedId<T>
pub fn try_from(s: T) -> Result<Self, ModelIdError>
pub fn from_string_unsafe(s: String) -> Self
pub fn timestamp_ms(&self) -> Option<u64>
pub fn inner(&self) -> &T
pub fn into_inner(self) -> T
Trait Implementations§
Source§impl<T: Clone> Clone for ValidShardedId<T>
impl<T: Clone> Clone for ValidShardedId<T>
Source§fn clone(&self) -> ValidShardedId<T>
fn clone(&self) -> ValidShardedId<T>
Returns a copy 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<T: Debug> Debug for ValidShardedId<T>
impl<T: Debug> Debug for ValidShardedId<T>
Source§impl<T: ModelId> Deref for ValidShardedId<T>
impl<T: ModelId> Deref for ValidShardedId<T>
Source§impl<'de, T> Deserialize<'de> for ValidShardedId<T>
impl<'de, T> Deserialize<'de> for ValidShardedId<T>
Source§fn deserialize<D>(deserializer: D) -> Result<ValidShardedId<T>, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<ValidShardedId<T>, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<T> Display for ValidShardedId<T>where
T: Display,
impl<T> Display for ValidShardedId<T>where
T: Display,
Source§impl From<ValidShardedId<AttemptId>> for AttemptId
impl From<ValidShardedId<AttemptId>> for AttemptId
Source§fn from(value: ValidShardedId<AttemptId>) -> Self
fn from(value: ValidShardedId<AttemptId>) -> Self
Converts to this type from the input type.
Source§impl From<ValidShardedId<AttemptId>> for AttemptId
impl From<ValidShardedId<AttemptId>> for AttemptId
Source§fn from(value: ValidShardedId<AttemptId>) -> Self
fn from(value: ValidShardedId<AttemptId>) -> Self
Converts to this type from the input type.
Source§impl From<ValidShardedId<AttemptId>> for String
impl From<ValidShardedId<AttemptId>> for String
Source§fn from(value: ValidShardedId<AttemptId>) -> Self
fn from(value: ValidShardedId<AttemptId>) -> Self
Converts to this type from the input type.
Source§impl From<ValidShardedId<ProjectId>> for ProjectId
impl From<ValidShardedId<ProjectId>> for ProjectId
Source§fn from(value: ValidShardedId<ProjectId>) -> Self
fn from(value: ValidShardedId<ProjectId>) -> Self
Converts to this type from the input type.
Source§impl From<ValidShardedId<ProjectId>> for ProjectId
impl From<ValidShardedId<ProjectId>> for ProjectId
Source§fn from(value: ValidShardedId<ProjectId>) -> Self
fn from(value: ValidShardedId<ProjectId>) -> Self
Converts to this type from the input type.
Source§impl From<ValidShardedId<ProjectId>> for String
impl From<ValidShardedId<ProjectId>> for String
Source§fn from(value: ValidShardedId<ProjectId>) -> Self
fn from(value: ValidShardedId<ProjectId>) -> Self
Converts to this type from the input type.
Source§impl From<ValidShardedId<RunId>> for RunId
impl From<ValidShardedId<RunId>> for RunId
Source§fn from(value: ValidShardedId<RunId>) -> Self
fn from(value: ValidShardedId<RunId>) -> Self
Converts to this type from the input type.
Source§impl From<ValidShardedId<RunId>> for RunId
impl From<ValidShardedId<RunId>> for RunId
Source§fn from(value: ValidShardedId<RunId>) -> Self
fn from(value: ValidShardedId<RunId>) -> Self
Converts to this type from the input type.
Source§impl From<ValidShardedId<RunId>> for String
impl From<ValidShardedId<RunId>> for String
Source§fn from(value: ValidShardedId<RunId>) -> Self
fn from(value: ValidShardedId<RunId>) -> Self
Converts to this type from the input type.
Source§impl<T: ModelId> From<ValidShardedId<T>> for Value
impl<T: ModelId> From<ValidShardedId<T>> for Value
Source§fn from(id: ValidShardedId<T>) -> Value
fn from(id: ValidShardedId<T>) -> Value
Converts to this type from the input type.
Source§impl From<ValidShardedId<TriggerId>> for String
impl From<ValidShardedId<TriggerId>> for String
Source§fn from(value: ValidShardedId<TriggerId>) -> Self
fn from(value: ValidShardedId<TriggerId>) -> Self
Converts to this type from the input type.
Source§impl From<ValidShardedId<TriggerId>> for TriggerId
impl From<ValidShardedId<TriggerId>> for TriggerId
Source§fn from(value: ValidShardedId<TriggerId>) -> Self
fn from(value: ValidShardedId<TriggerId>) -> Self
Converts to this type from the input type.
Source§impl From<ValidShardedId<TriggerId>> for TriggerId
impl From<ValidShardedId<TriggerId>> for TriggerId
Source§fn from(value: ValidShardedId<TriggerId>) -> Self
fn from(value: ValidShardedId<TriggerId>) -> Self
Converts to this type from the input type.
Source§impl<T: Ord> Ord for ValidShardedId<T>
impl<T: Ord> Ord for ValidShardedId<T>
Source§fn cmp(&self, other: &ValidShardedId<T>) -> Ordering
fn cmp(&self, other: &ValidShardedId<T>) -> Ordering
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<T: PartialEq> PartialEq for ValidShardedId<T>
impl<T: PartialEq> PartialEq for ValidShardedId<T>
Source§impl<T: PartialOrd> PartialOrd for ValidShardedId<T>
impl<T: PartialOrd> PartialOrd for ValidShardedId<T>
Source§impl<T> Serialize for ValidShardedId<T>where
T: Serialize,
impl<T> Serialize for ValidShardedId<T>where
T: Serialize,
Source§impl<T: ModelId> TryFromU64 for ValidShardedId<T>
impl<T: ModelId> TryFromU64 for ValidShardedId<T>
Source§impl<T: ModelId + TryGetable> TryGetable for ValidShardedId<T>
impl<T: ModelId + TryGetable> TryGetable for ValidShardedId<T>
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
Source§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
Source§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
Source§impl<T: ModelId> ValueType for ValidShardedId<T>
impl<T: ModelId> ValueType for ValidShardedId<T>
impl<T: Eq> Eq for ValidShardedId<T>
impl<T> StructuralPartialEq for ValidShardedId<T>
Auto Trait Implementations§
impl<T> Freeze for ValidShardedId<T>where
T: Freeze,
impl<T> RefUnwindSafe for ValidShardedId<T>where
T: RefUnwindSafe,
impl<T> Send for ValidShardedId<T>where
T: Send,
impl<T> Sync for ValidShardedId<T>where
T: Sync,
impl<T> Unpin for ValidShardedId<T>where
T: Unpin,
impl<T> UnwindSafe for ValidShardedId<T>where
T: UnwindSafe,
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,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<V> FromValueTuple for V
impl<V> FromValueTuple for V
fn from_value_tuple<I>(i: I) -> Vwhere
I: IntoValueTuple,
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> 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
Source§impl<V> IntoValueTuple for V
impl<V> IntoValueTuple for V
fn into_value_tuple(self) -> ValueTuple
Source§impl<T> TryGetableMany for Twhere
T: TryGetable,
impl<T> TryGetableMany for Twhere
T: TryGetable,
Source§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
Source§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