pub struct EntitySubtypeManager<'db, S: Schema, M: SubtypeRootModel<Schema = S> + EntityModel<Schema = S>> { /* private fields */ }Expand description
Read-only, schema/model-branded manager for an inclusive generated subtype association. Results are the generated associated leaf or closed family type; no writes are exposed. Reads and counts can return input/schema-validation, database/transaction/close, or hydration/model-validation errors.
Implementations§
Source§impl<S, M> EntitySubtypeManager<'_, S, M>where
S: Schema,
M: SubtypeRootModel<Schema = S> + EntityModel<Schema = S>,
impl<S, M> EntitySubtypeManager<'_, S, M>where
S: Schema,
M: SubtypeRootModel<Schema = S> + EntityModel<Schema = S>,
Sourcepub async fn get_by_iid(&self, _iid: &str) -> Result<Option<M::Subtypes>>
pub async fn get_by_iid(&self, _iid: &str) -> Result<Option<M::Subtypes>>
Reads one canonical IID across the root and its generated concrete descendants.
Invalid IIDs are rejected before I/O; a valid but absent IID returns None.
Auto Trait Implementations§
impl<'db, S, M> !RefUnwindSafe for EntitySubtypeManager<'db, S, M>
impl<'db, S, M> !UnwindSafe for EntitySubtypeManager<'db, S, M>
impl<'db, S, M> Freeze for EntitySubtypeManager<'db, S, M>
impl<'db, S, M> Send for EntitySubtypeManager<'db, S, M>
impl<'db, S, M> Sync for EntitySubtypeManager<'db, S, M>
impl<'db, S, M> Unpin for EntitySubtypeManager<'db, S, M>
impl<'db, S, M> UnsafeUnpin for EntitySubtypeManager<'db, S, M>
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> 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