#[non_exhaustive]pub struct Builder { /* private fields */ }
Expand description
A builder for Filter
Implementations
sourceimpl Builder
impl Builder
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
A resource property name. For example, TrainingJobName
. For valid property names, see SearchRecord
. You must specify a valid property for the resource.
sourcepub fn set_name(self, input: Option<String>) -> Self
pub fn set_name(self, input: Option<String>) -> Self
A resource property name. For example, TrainingJobName
. For valid property names, see SearchRecord
. You must specify a valid property for the resource.
sourcepub fn operator(self, input: Operator) -> Self
pub fn operator(self, input: Operator) -> Self
A Boolean binary operator that is used to evaluate the filter. The operator field contains one of the following values:
- Equals
-
The value of
Name
equalsValue
. - NotEquals
-
The value of
Name
doesn't equalValue
. - Exists
-
The
Name
property exists. - NotExists
-
The
Name
property does not exist. - GreaterThan
-
The value of
Name
is greater thanValue
. Not supported for text properties. - GreaterThanOrEqualTo
-
The value of
Name
is greater than or equal toValue
. Not supported for text properties. - LessThan
-
The value of
Name
is less thanValue
. Not supported for text properties. - LessThanOrEqualTo
-
The value of
Name
is less than or equal toValue
. Not supported for text properties. - In
-
The value of
Name
is one of the comma delimited strings inValue
. Only supported for text properties. - Contains
-
The value of
Name
contains the stringValue
. Only supported for text properties.A
SearchExpression
can include theContains
operator multiple times when the value ofName
is one of the following:-
Experiment.DisplayName
-
Experiment.ExperimentName
-
Experiment.Tags
-
Trial.DisplayName
-
Trial.TrialName
-
Trial.Tags
-
TrialComponent.DisplayName
-
TrialComponent.TrialComponentName
-
TrialComponent.Tags
-
TrialComponent.InputArtifacts
-
TrialComponent.OutputArtifacts
A
SearchExpression
can include only oneContains
operator for all other values ofName
. In these cases, if you include multipleContains
operators in theSearchExpression
, the result is the following error message: "'CONTAINS' operator usage limit of 1 exceeded.
" -
sourcepub fn set_operator(self, input: Option<Operator>) -> Self
pub fn set_operator(self, input: Option<Operator>) -> Self
A Boolean binary operator that is used to evaluate the filter. The operator field contains one of the following values:
- Equals
-
The value of
Name
equalsValue
. - NotEquals
-
The value of
Name
doesn't equalValue
. - Exists
-
The
Name
property exists. - NotExists
-
The
Name
property does not exist. - GreaterThan
-
The value of
Name
is greater thanValue
. Not supported for text properties. - GreaterThanOrEqualTo
-
The value of
Name
is greater than or equal toValue
. Not supported for text properties. - LessThan
-
The value of
Name
is less thanValue
. Not supported for text properties. - LessThanOrEqualTo
-
The value of
Name
is less than or equal toValue
. Not supported for text properties. - In
-
The value of
Name
is one of the comma delimited strings inValue
. Only supported for text properties. - Contains
-
The value of
Name
contains the stringValue
. Only supported for text properties.A
SearchExpression
can include theContains
operator multiple times when the value ofName
is one of the following:-
Experiment.DisplayName
-
Experiment.ExperimentName
-
Experiment.Tags
-
Trial.DisplayName
-
Trial.TrialName
-
Trial.Tags
-
TrialComponent.DisplayName
-
TrialComponent.TrialComponentName
-
TrialComponent.Tags
-
TrialComponent.InputArtifacts
-
TrialComponent.OutputArtifacts
A
SearchExpression
can include only oneContains
operator for all other values ofName
. In these cases, if you include multipleContains
operators in theSearchExpression
, the result is the following error message: "'CONTAINS' operator usage limit of 1 exceeded.
" -
sourcepub fn value(self, input: impl Into<String>) -> Self
pub fn value(self, input: impl Into<String>) -> Self
A value used with Name
and Operator
to determine which resources satisfy the filter's condition. For numerical properties, Value
must be an integer or floating-point decimal. For timestamp properties, Value
must be an ISO 8601 date-time string of the following format: YYYY-mm-dd'T'HH:MM:SS
.
sourcepub fn set_value(self, input: Option<String>) -> Self
pub fn set_value(self, input: Option<String>) -> Self
A value used with Name
and Operator
to determine which resources satisfy the filter's condition. For numerical properties, Value
must be an integer or floating-point decimal. For timestamp properties, Value
must be an ISO 8601 date-time string of the following format: YYYY-mm-dd'T'HH:MM:SS
.
Trait Implementations
impl StructuralPartialEq for Builder
Auto Trait Implementations
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
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
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more