pub struct GetScriptLanguages<'a, 'b> { /* private fields */ }
Expand description
Builder for the Get Script Languages API
Returns available script types, languages and contexts
§Optional, experimental
This requires the experimental-apis
feature. Can have breaking changes in future
versions or might even be removed entirely.
Implementations§
Source§impl<'a, 'b> GetScriptLanguages<'a, 'b>
impl<'a, 'b> GetScriptLanguages<'a, 'b>
Sourcepub fn new(transport: &'a Transport) -> Self
pub fn new(transport: &'a Transport) -> Self
Creates a new instance of GetScriptLanguages
Sourcepub fn error_trace(self, error_trace: bool) -> Self
pub fn error_trace(self, error_trace: bool) -> Self
Include the stack trace of returned errors.
Sourcepub fn filter_path(self, filter_path: &'b [&'b str]) -> Self
pub fn filter_path(self, filter_path: &'b [&'b str]) -> Self
A comma-separated list of filters used to reduce the response.
Sourcepub fn header(self, key: HeaderName, value: HeaderValue) -> Self
pub fn header(self, key: HeaderName, value: HeaderValue) -> Self
Adds a HTTP header
Sourcepub fn request_timeout(self, timeout: Duration) -> Self
pub fn request_timeout(self, timeout: Duration) -> Self
Sets a request timeout for this API call.
The timeout is applied from when the request starts connecting until the response body has finished.
Trait Implementations§
Source§impl<'a, 'b> Clone for GetScriptLanguages<'a, 'b>
impl<'a, 'b> Clone for GetScriptLanguages<'a, 'b>
Source§fn clone(&self) -> GetScriptLanguages<'a, 'b>
fn clone(&self) -> GetScriptLanguages<'a, 'b>
Returns a copy 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<'a, 'b> Freeze for GetScriptLanguages<'a, 'b>
impl<'a, 'b> !RefUnwindSafe for GetScriptLanguages<'a, 'b>
impl<'a, 'b> Send for GetScriptLanguages<'a, 'b>
impl<'a, 'b> Sync for GetScriptLanguages<'a, 'b>
impl<'a, 'b> Unpin for GetScriptLanguages<'a, 'b>
impl<'a, 'b> !UnwindSafe for GetScriptLanguages<'a, 'b>
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> 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 moreCreates a shared type from an unshared type.