pub struct RealityCaptureClient { /* private fields */ }Expand description
Reality Capture API client
Implementations§
Source§impl RealityCaptureClient
impl RealityCaptureClient
Sourcepub fn new(config: Config, auth: AuthClient) -> Self
pub fn new(config: Config, auth: AuthClient) -> Self
Create a new Reality Capture client
Sourcepub fn new_with_http_config(
config: Config,
auth: AuthClient,
http_config: HttpClientConfig,
) -> Self
pub fn new_with_http_config( config: Config, auth: AuthClient, http_config: HttpClientConfig, ) -> Self
Create a new Reality Capture client with custom HTTP config
Sourcepub async fn create_photoscene(
&self,
name: &str,
scene_type: SceneType,
format: OutputFormat,
) -> Result<Photoscene>
pub async fn create_photoscene( &self, name: &str, scene_type: SceneType, format: OutputFormat, ) -> Result<Photoscene>
Create a new photoscene
Sourcepub async fn upload_photos(
&self,
photoscene_id: &str,
photo_paths: &[&Path],
) -> Result<Vec<UploadedFile>>
pub async fn upload_photos( &self, photoscene_id: &str, photo_paths: &[&Path], ) -> Result<Vec<UploadedFile>>
Upload photos to a photoscene
Sourcepub async fn start_processing(&self, photoscene_id: &str) -> Result<()>
pub async fn start_processing(&self, photoscene_id: &str) -> Result<()>
Start processing a photoscene
Sourcepub async fn get_progress(
&self,
photoscene_id: &str,
) -> Result<PhotosceneProgress>
pub async fn get_progress( &self, photoscene_id: &str, ) -> Result<PhotosceneProgress>
Get photoscene progress
Sourcepub async fn get_result(
&self,
photoscene_id: &str,
format: OutputFormat,
) -> Result<PhotosceneResult>
pub async fn get_result( &self, photoscene_id: &str, format: OutputFormat, ) -> Result<PhotosceneResult>
Get photoscene result (download link)
Sourcepub async fn delete_photoscene(&self, photoscene_id: &str) -> Result<()>
pub async fn delete_photoscene(&self, photoscene_id: &str) -> Result<()>
Delete a photoscene
Sourcepub async fn list_photoscenes(&self) -> Result<Vec<Photoscene>>
pub async fn list_photoscenes(&self) -> Result<Vec<Photoscene>>
List all photoscenes
Sourcepub fn available_formats(&self) -> Vec<OutputFormat>
pub fn available_formats(&self) -> Vec<OutputFormat>
Get available output formats
Trait Implementations§
Source§impl Clone for RealityCaptureClient
impl Clone for RealityCaptureClient
Source§fn clone(&self) -> RealityCaptureClient
fn clone(&self) -> RealityCaptureClient
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for RealityCaptureClient
impl !RefUnwindSafe for RealityCaptureClient
impl Send for RealityCaptureClient
impl Sync for RealityCaptureClient
impl Unpin for RealityCaptureClient
impl UnsafeUnpin for RealityCaptureClient
impl !UnwindSafe for RealityCaptureClient
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