#[non_exhaustive]pub struct ConnectorProperty {
pub name: String,
pub key_override: Option<String>,
pub required: bool,
pub default_value: Option<String>,
pub allowed_values: Option<Vec<String>>,
pub property_location: Option<PropertyLocation>,
pub property_type: PropertyType,
}Expand description
Defines a property configuration for connection types, default values, and where the property should be used in requests.
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.
key_override: Option<String>A key name to use when sending this property in API requests, if different from the display name.
required: boolIndicates whether the property is required.
default_value: Option<String>The default value for the property.
allowed_values: Option<Vec<String>>A list of AllowedValue objects representing the values allowed for the property.
property_location: Option<PropertyLocation>Specifies where this property should be included in REST requests, such as in headers, query parameters, or request body.
property_type: PropertyTypeThe data type of this property
Implementations§
Source§impl ConnectorProperty
impl ConnectorProperty
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 default_value(&self) -> Option<&str>
pub fn default_value(&self) -> Option<&str>
The default value for the property.
Sourcepub fn allowed_values(&self) -> &[String]
pub fn allowed_values(&self) -> &[String]
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 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.
Sourcepub fn property_type(&self) -> &PropertyType
pub fn property_type(&self) -> &PropertyType
The data type of this property
Source§impl ConnectorProperty
impl ConnectorProperty
Sourcepub fn builder() -> ConnectorPropertyBuilder
pub fn builder() -> ConnectorPropertyBuilder
Creates a new builder-style object to manufacture ConnectorProperty.
Trait Implementations§
Source§impl Clone for ConnectorProperty
impl Clone for ConnectorProperty
Source§fn clone(&self) -> ConnectorProperty
fn clone(&self) -> ConnectorProperty
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ConnectorProperty
impl Debug for ConnectorProperty
Source§impl PartialEq for ConnectorProperty
impl PartialEq for ConnectorProperty
Source§fn eq(&self, other: &ConnectorProperty) -> bool
fn eq(&self, other: &ConnectorProperty) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ConnectorProperty
Auto Trait Implementations§
impl Freeze for ConnectorProperty
impl RefUnwindSafe for ConnectorProperty
impl Send for ConnectorProperty
impl Sync for ConnectorProperty
impl Unpin for ConnectorProperty
impl UnsafeUnpin for ConnectorProperty
impl UnwindSafe for ConnectorProperty
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