pub struct ExportOpenStack<'a> {
pub input: Input<'a, 'a>,
pub auth_url: Cow<'a, str>,
pub username: Cow<'a, str>,
pub password: Cow<'a, str>,
pub region: Cow<'a, str>,
pub container: Cow<'a, str>,
pub tenant_name: Option<Cow<'a, str>>,
pub file: Option<Cow<'a, str>>,
pub file_prefix: Option<Cow<'a, str>>,
}Expand description
Export files to OpenStack Object Storage (Swift)
Fields§
§input: Input<'a, 'a>The ID of the task, or tasks, to export.
auth_url: Cow<'a, str>§username: Cow<'a, str>§password: Cow<'a, str>§region: Cow<'a, str>§container: Cow<'a, str>§tenant_name: Option<Cow<'a, str>>§file: Option<Cow<'a, str>>§file_prefix: Option<Cow<'a, str>>Implementations§
Source§impl<'a> ExportOpenStack<'a>
impl<'a> ExportOpenStack<'a>
Sourcepub fn to_job_task(&self) -> Result<Value>
pub fn to_job_task(&self) -> Result<Value>
Convert a job to an object to be included in a job call.
This includes the fields of the task, with an additional "operation" field,
containing the operation name.
Trait Implementations§
Source§impl<'a> Debug for ExportOpenStack<'a>
impl<'a> Debug for ExportOpenStack<'a>
Source§impl<'a> From<ExportOpenStack<'a>> for Task<'a>
impl<'a> From<ExportOpenStack<'a>> for Task<'a>
Source§fn from(task: ExportOpenStack<'a>) -> Task<'a>
fn from(task: ExportOpenStack<'a>) -> Task<'a>
Converts to this type from the input type.
Source§impl<'a> JsonApiCall for ExportOpenStack<'a>
impl<'a> JsonApiCall for ExportOpenStack<'a>
Source§type JsonResponse = TasksOutput
type JsonResponse = TasksOutput
The response type of the call, as is returned by the server. Read more
Source§type JsonRequest = ExportOpenStack<'a>
type JsonRequest = ExportOpenStack<'a>
The request that is sent to the server.
self is converted to this type, using
Self::try_into_request before making the API call.Source§fn try_into_request(self) -> Result<ExportOpenStack<'a>, Error>
fn try_into_request(self) -> Result<ExportOpenStack<'a>, Error>
Convert
self to a Self::JsonRequest. This is called before making the HTTP POST
request.Source§fn parse_json_response(
status: StatusCode,
content_type: Option<HeaderValue>,
raw_resp: Vec<u8>,
resp: Result<Self::JsonResponse>,
) -> Result<Status, Error>
fn parse_json_response( status: StatusCode, content_type: Option<HeaderValue>, raw_resp: Vec<u8>, resp: Result<Self::JsonResponse>, ) -> Result<Status, Error>
Convert a
Self::JsonResponse, as received from the server, into Self::Output.Source§fn modify_request(&self, request_builder: Builder) -> Builder
fn modify_request(&self, request_builder: Builder) -> Builder
A hook used to modify the request before it’s finalised. This is called directly before the
body method on the builder is called.Source§impl<'a> Serialize for ExportOpenStack<'a>
impl<'a> Serialize for ExportOpenStack<'a>
impl<'a> ApiCall for ExportOpenStack<'a>
Auto Trait Implementations§
impl<'a> Freeze for ExportOpenStack<'a>
impl<'a> RefUnwindSafe for ExportOpenStack<'a>
impl<'a> Send for ExportOpenStack<'a>
impl<'a> Sync for ExportOpenStack<'a>
impl<'a> Unpin for ExportOpenStack<'a>
impl<'a> UnwindSafe for ExportOpenStack<'a>
Blanket Implementations§
Source§impl<T> ApiCall for Twhere
T: JsonApiCall,
impl<T> ApiCall for Twhere
T: JsonApiCall,
Source§type Output = <T as JsonApiCall>::Output
type Output = <T as JsonApiCall>::Output
The output type of the call.
Source§type RequestBody = Vec<u8>
type RequestBody = Vec<u8>
The type of the request body.
Source§fn modify_request(&self, request_builder: Builder) -> Builder
fn modify_request(&self, request_builder: Builder) -> Builder
A hook used to modify the request before it’s finalised. This is called directly before the
body method on the builder is called.Source§fn request_body(self) -> Result<<T as ApiCall>::RequestBody, Error>
fn request_body(self) -> Result<<T as ApiCall>::RequestBody, Error>
Convert
self to a Self::RequestBody. This is called before making the HTTP POST
request.Source§fn response<'async_trait, B>(
resp: Response<B>,
) -> Pin<Box<dyn Future<Output = Result<<T as ApiCall>::Output, Error>> + Send + 'async_trait>>where
B: 'async_trait + ResponseBody,
T: 'async_trait,
fn response<'async_trait, B>(
resp: Response<B>,
) -> Pin<Box<dyn Future<Output = Result<<T as ApiCall>::Output, Error>> + Send + 'async_trait>>where
B: 'async_trait + ResponseBody,
T: 'async_trait,
Convert a
http::Response, as received from the server, into Self::Output.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> 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<C> RawApiCall for Cwhere
C: ApiCall,
impl<C> RawApiCall for Cwhere
C: ApiCall,
Source§type RequestBody = <C as ApiCall>::RequestBody
type RequestBody = <C as ApiCall>::RequestBody
The type of the request body.
Source§fn request<'life0, 'async_trait, B, T>(
self,
client: &'life0 Client<B, T>,
) -> Pin<Box<dyn Future<Output = Result<<C as RawApiCall>::Output, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
B: From<<C as RawApiCall>::RequestBody> + Sync + 'async_trait + Send,
T: 'async_trait + Transport<B>,
C: 'async_trait,
fn request<'life0, 'async_trait, B, T>(
self,
client: &'life0 Client<B, T>,
) -> Pin<Box<dyn Future<Output = Result<<C as RawApiCall>::Output, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
B: From<<C as RawApiCall>::RequestBody> + Sync + 'async_trait + Send,
T: 'async_trait + Transport<B>,
C: 'async_trait,
Make a request using a client. Read more