pub struct Workspace {
pub id: String,
pub name: String,
pub description: String,
pub created_at: i64,
pub datasets: u64,
pub files: u64,
/* private fields */
}Fields§
§id: String§name: String§description: String§created_at: i64§datasets: u64§files: u64Implementations§
Source§impl Workspace
impl Workspace
pub async fn list_datasets(&self) -> Result<Vec<Dataset>>
pub async fn create_dataset( &self, options: &CreateDatasetOptions, ) -> Result<String>
pub async fn rename(&mut self, name: &str) -> Result<()>
pub async fn set_description(&mut self, description: &str) -> Result<()>
pub async fn remove(&self) -> Result<()>
pub async fn get_files(&self) -> Result<Vec<WorkspaceFile>>
pub async fn upload_file( &self, name: &str, content_type: &str, data: &[u8], ) -> Result<WorkspaceFile>
pub async fn download_file(&self, file: &WorkspaceFile) -> Result<Vec<u8>>
pub async fn remove_file(&self, key: &str) -> Result<()>
Trait Implementations§
Auto Trait Implementations§
impl Forget for Workspace
impl Freeze for Workspacewhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<String>: Freeze,
PhantomData<Platform>: Freeze,
PhantomData<ApiKey>: Freeze,
NonZero<i32>: Freeze,
Utc: Freeze,
PhantomData<GroupRef>: Freeze,
PhantomData<GroupMember>: Freeze,
impl Move for Workspace
impl RefUnwindSafe for Workspace
impl Send for Workspace
impl Sync for Workspace
impl Unpin for Workspace
impl UnsafeUnpin for Workspacewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<Platform>: UnsafeUnpin,
PhantomData<ApiKey>: UnsafeUnpin,
NonZeroI32Inner: UnsafeUnpin,
Utc: UnsafeUnpin,
PhantomData<GroupRef>: UnsafeUnpin,
PhantomData<GroupMember>: UnsafeUnpin,
impl UnwindSafe for Workspace
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