pub struct Documents { /* private fields */ }Implementations§
Source§impl Documents
impl Documents
Sourcepub async fn get_with_config(
&self,
name: impl AsRef<str>,
config: GetDocumentConfig,
) -> Result<Document>
pub async fn get_with_config( &self, name: impl AsRef<str>, config: GetDocumentConfig, ) -> Result<Document>
获取 Document(带配置)。
Sourcepub async fn delete_with_config(
&self,
name: impl AsRef<str>,
config: DeleteDocumentConfig,
) -> Result<()>
pub async fn delete_with_config( &self, name: impl AsRef<str>, config: DeleteDocumentConfig, ) -> Result<()>
删除 Document(带配置)。
Sourcepub async fn list(
&self,
parent: impl AsRef<str>,
) -> Result<ListDocumentsResponse>
pub async fn list( &self, parent: impl AsRef<str>, ) -> Result<ListDocumentsResponse>
列出 Documents。
Sourcepub async fn list_with_config(
&self,
parent: impl AsRef<str>,
config: ListDocumentsConfig,
) -> Result<ListDocumentsResponse>
pub async fn list_with_config( &self, parent: impl AsRef<str>, config: ListDocumentsConfig, ) -> Result<ListDocumentsResponse>
列出 Documents(带配置)。
Sourcepub async fn all(&self, parent: impl AsRef<str>) -> Result<Vec<Document>>
pub async fn all(&self, parent: impl AsRef<str>) -> Result<Vec<Document>>
列出所有 Documents(自动翻页)。
Sourcepub async fn all_with_config(
&self,
parent: impl AsRef<str>,
config: ListDocumentsConfig,
) -> Result<Vec<Document>>
pub async fn all_with_config( &self, parent: impl AsRef<str>, config: ListDocumentsConfig, ) -> Result<Vec<Document>>
列出所有 Documents(带配置,自动翻页)。
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Documents
impl !RefUnwindSafe for Documents
impl Send for Documents
impl Sync for Documents
impl Unpin for Documents
impl !UnwindSafe for Documents
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