pub struct Sandbox {
pub client: Client,
}
Fields§
§client: Client
Implementations§
Source§impl Sandbox
impl Sandbox
Sourcepub async fn patch_update_employment_4<'a>(
&'a self,
employment_id: &'a str,
body: &EmploymentUpdateParams,
) -> Result<EmploymentResponse, Error>
pub async fn patch_update_employment_4<'a>( &'a self, employment_id: &'a str, body: &EmploymentUpdateParams, ) -> Result<EmploymentResponse, Error>
Update employment in the Sandbox Environment
Updates an employment. Use this endpoint to modify employment states for testing in the Sandbox environment. This endpoint will respond with a 404 outside of the Sandbox environment.
For updating an employment’s parameters outside of testing purposes, use this Employment update endpoint.
Parameters:
employment_id: &'astr
: Employment ID (required)
async fn example_sandbox_patch_update_employment_4() -> anyhow::Result<()> {
let client = remote_api::Client::new_from_env();
let result: remote_api::types::EmploymentResponse = client
.sandbox()
.patch_update_employment_4(
"some-string",
&remote_api::types::EmploymentUpdateParams {
status: Some(remote_api::types::EmploymentStatus::Deleted),
},
)
.await?;
println!("{:?}", result);
Ok(())
}
Sourcepub async fn patch_update_employment_3<'a>(
&'a self,
employment_id: &'a str,
body: &EmploymentUpdateParams,
) -> Result<EmploymentResponse, Error>
pub async fn patch_update_employment_3<'a>( &'a self, employment_id: &'a str, body: &EmploymentUpdateParams, ) -> Result<EmploymentResponse, Error>
Update employment in the Sandbox Environment
Updates an employment. Use this endpoint to modify employment states for testing in the Sandbox environment. This endpoint will respond with a 404 outside of the Sandbox environment.
For updating an employment’s parameters outside of testing purposes, use this Employment update endpoint.
Parameters:
employment_id: &'astr
: Employment ID (required)
async fn example_sandbox_patch_update_employment_3() -> anyhow::Result<()> {
let client = remote_api::Client::new_from_env();
let result: remote_api::types::EmploymentResponse = client
.sandbox()
.patch_update_employment_3(
"some-string",
&remote_api::types::EmploymentUpdateParams {
status: Some(remote_api::types::EmploymentStatus::Deleted),
},
)
.await?;
println!("{:?}", result);
Ok(())
}
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Sandbox
impl !RefUnwindSafe for Sandbox
impl Send for Sandbox
impl Sync for Sandbox
impl Unpin for Sandbox
impl !UnwindSafe for Sandbox
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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 more