#[non_exhaustive]pub struct Property {
pub name: String,
pub description: String,
pub required: bool,
pub default_value: Option<String>,
pub property_types: Vec<PropertyType>,
pub allowed_values: Option<Vec<AllowedValue>>,
pub data_operation_scopes: Option<Vec<DataOperation>>,
pub key_override: Option<String>,
pub property_location: Option<PropertyLocation>,
}Expand description
An object that defines a connection type for a compute environment.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: StringThe name of the property.
description: StringA description of the property.
required: boolIndicates whether the property is required.
default_value: Option<String>The default value for the property.
property_types: Vec<PropertyType>Describes the type of property.
allowed_values: Option<Vec<AllowedValue>>A list of AllowedValue objects representing the values allowed for the property.
data_operation_scopes: Option<Vec<DataOperation>>Indicates which data operations are applicable to the property.
key_override: Option<String>A key name to use when sending this property in API requests, if different from the display name.
property_location: Option<PropertyLocation>Specifies where this property should be included in REST requests, such as in headers, query parameters, or request body.
Implementations§
Source§impl Property
impl Property
Sourcepub fn description(&self) -> &str
pub fn description(&self) -> &str
A description of the property.
Sourcepub fn default_value(&self) -> Option<&str>
pub fn default_value(&self) -> Option<&str>
The default value for the property.
Sourcepub fn property_types(&self) -> &[PropertyType]
pub fn property_types(&self) -> &[PropertyType]
Describes the type of property.
Sourcepub fn allowed_values(&self) -> &[AllowedValue]
pub fn allowed_values(&self) -> &[AllowedValue]
A list of AllowedValue objects representing the values allowed for the property.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .allowed_values.is_none().
Sourcepub fn data_operation_scopes(&self) -> &[DataOperation]
pub fn data_operation_scopes(&self) -> &[DataOperation]
Indicates which data operations are applicable to the property.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .data_operation_scopes.is_none().
Sourcepub fn key_override(&self) -> Option<&str>
pub fn key_override(&self) -> Option<&str>
A key name to use when sending this property in API requests, if different from the display name.
Sourcepub fn property_location(&self) -> Option<&PropertyLocation>
pub fn property_location(&self) -> Option<&PropertyLocation>
Specifies where this property should be included in REST requests, such as in headers, query parameters, or request body.
Trait Implementations§
impl StructuralPartialEq for Property
Auto Trait Implementations§
impl Freeze for Property
impl RefUnwindSafe for Property
impl Send for Property
impl Sync for Property
impl Unpin for Property
impl UnsafeUnpin for Property
impl UnwindSafe for Property
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<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 more