ExportS3

Struct ExportS3 

Source
pub struct ExportS3<'a> {
Show 16 fields pub input: Input<'a, 'a>, pub bucket: Cow<'a, str>, pub region: Cow<'a, str>, pub access_key_id: Cow<'a, str>, pub secret_access_key: Cow<'a, str>, pub endpoint: Option<Cow<'a, str>>, pub key: Option<Cow<'a, str>>, pub key_prefix: Option<Cow<'a, str>>, pub session_token: Option<Cow<'a, str>>, pub acl: Option<Cow<'a, str>>, pub cache_control: Option<Cow<'a, str>>, pub content_disposition: Option<Cow<'a, str>>, pub content_type: Option<Cow<'a, str>>, pub metadata: Option<Value>, pub server_side_encrpytion: Option<Cow<'a, str>>, pub tagging: Option<Value>,
}
Expand description

Export files to an S3 compatible bucket.

Docs api/v2/export#export-s3-tasks

Fields§

§input: Input<'a, 'a>

The ID of the task, or tasks, to export.

§bucket: Cow<'a, str>§region: Cow<'a, str>§access_key_id: Cow<'a, str>§secret_access_key: Cow<'a, str>§endpoint: Option<Cow<'a, str>>§key: Option<Cow<'a, str>>§key_prefix: Option<Cow<'a, str>>§session_token: Option<Cow<'a, str>>§acl: Option<Cow<'a, str>>§cache_control: Option<Cow<'a, str>>§content_disposition: Option<Cow<'a, str>>§content_type: Option<Cow<'a, str>>§metadata: Option<Value>§server_side_encrpytion: Option<Cow<'a, str>>§tagging: Option<Value>

Implementations§

Source§

impl<'a> ExportS3<'a>

Source

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 ExportS3<'a>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'a> From<ExportS3<'a>> for Task<'a>

Source§

fn from(task: ExportS3<'a>) -> Task<'a>

Converts to this type from the input type.
Source§

impl<'a> JsonApiCall for ExportS3<'a>

Source§

type Output = Status

The output type of the call.
Source§

type JsonResponse = TasksOutput

The response type of the call, as is returned by the server. Read more
Source§

type JsonRequest = ExportS3<'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 method(&self) -> Method

The HTTP request method.
Source§

fn uri(&self, endpoint: &str) -> String

Generate the URI to make the HTTP POST request to.
Source§

fn try_into_request(self) -> Result<ExportS3<'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>

Convert a Self::JsonResponse, as received from the server, into Self::Output.
Source§

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 ExportS3<'a>

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl<'a> ApiCall for ExportS3<'a>

Auto Trait Implementations§

§

impl<'a> Freeze for ExportS3<'a>

§

impl<'a> RefUnwindSafe for ExportS3<'a>

§

impl<'a> Send for ExportS3<'a>

§

impl<'a> Sync for ExportS3<'a>

§

impl<'a> Unpin for ExportS3<'a>

§

impl<'a> UnwindSafe for ExportS3<'a>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> ApiCall for T
where T: JsonApiCall,

Source§

type Output = <T as JsonApiCall>::Output

The output type of the call.
Source§

type RequestBody = Vec<u8>

The type of the request body.
Source§

fn method(&self) -> Method

The HTTP request method.
Source§

fn uri(&self, endpoint: &str) -> String

Generate the URI to make the HTTP POST request to.
Source§

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>

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,

Convert a http::Response, as received from the server, into Self::Output.
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<C> RawApiCall for C
where C: ApiCall,

Source§

type Output = <C as ApiCall>::Output

The output type of the call.
Source§

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,

Make a request using a client. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more