pub struct AuthorRepository { /* private fields */ }Expand description
作者仓储
Implementations§
Source§impl AuthorRepository
impl AuthorRepository
条件查询作者列表
Sourcepub async fn delete_by_id(&self, id: i32) -> ApiResult<()>
pub async fn delete_by_id(&self, id: i32) -> ApiResult<()>
按 ID 删除作者
按 ID 查询作者
更新作者
按名称检测作者是否已存在
删除前检查是否绑定漫画
获取最大作者 ID
无条件查询全部作者
查询作者关联的全部漫画
Auto Trait Implementations§
impl Freeze for AuthorRepository
impl !RefUnwindSafe for AuthorRepository
impl Send for AuthorRepository
impl Sync for AuthorRepository
impl Unpin for AuthorRepository
impl UnsafeUnpin for AuthorRepository
impl !UnwindSafe for AuthorRepository
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
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
§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