pub struct How {
pub be_nice: bool,
pub client_timeout: Duration,
pub api_token: Option<String>,
pub trace_context: Option<TraceContext>,
}
Expand description
Controls of how to execute a task
Fields§
§be_nice: bool
The be-nice flag is used to reduce load for the models you intend to use. This is commonly used if you are conducting experiments or trying things out that create a large load on the aleph-alpha-api and you do not want to increase queue time for other users too much.
(!) This increases how often you get a Busy
response.
client_timeout: Duration
The maximum duration of a request before the client cancels the request. This is not passed on to the server but only handled by the client locally, i.e. the client will not wait longer than this duration for a response.
api_token: Option<String>
API token used to authenticate the request, overwrites the default token provided on setup Default token may not provide the tracking or permission that is wanted for the request
trace_context: Option<TraceContext>
Optionally pass a trace context to propagate tracing information through distributed systems.
Trait Implementations§
impl Eq for How
impl StructuralPartialEq for How
Auto Trait Implementations§
impl Freeze for How
impl RefUnwindSafe for How
impl Send for How
impl Sync for How
impl Unpin for How
impl UnwindSafe for How
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.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>
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>
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
ReadEndian::read_from_little_endian()
.