pub struct Preset {
pub id: Option<String>,
pub user_facing_id: Option<String>,
pub entity_type: String,
pub connector_type: i32,
pub config_overrides: Vec<ConfigOverrides>,
pub parent: Option<Box<Preset>>,
pub name: String,
pub description: String,
pub create_time: Option<Timestamp>,
pub update_time: Option<Timestamp>,
pub preset_type: Option<i32>,
}
Fields§
§id: Option<String>
A unique identifier automatically generated by the service (do not provide this from the client side)
user_facing_id: Option<String>
A unique identifier provided by the user
entity_type: String
§connector_type: i32
§config_overrides: Vec<ConfigOverrides>
A list of of configuration override templates, each associated with a specific output schema and condition
parent: Option<Box<Preset>>
The parent preset from which the initial configuration is inherited
name: String
§description: String
§create_time: Option<Timestamp>
System-generated timestamp for when the preset was created
update_time: Option<Timestamp>
System-generated timestamp for when the preset was last updated
preset_type: Option<i32>
Indicates whether the preset is system-provided or custom-created by the user
Implementations§
Source§impl Preset
impl Preset
Sourcepub fn user_facing_id(&self) -> &str
pub fn user_facing_id(&self) -> &str
Returns the value of user_facing_id
, or the default value if user_facing_id
is unset.
Sourcepub fn connector_type(&self) -> ConnectorType
pub fn connector_type(&self) -> ConnectorType
Returns the enum value of connector_type
, or the default if the field is set to an invalid enum value.
Sourcepub fn set_connector_type(&mut self, value: ConnectorType)
pub fn set_connector_type(&mut self, value: ConnectorType)
Sets connector_type
to the provided enum value.
Sourcepub fn preset_type(&self) -> PresetType
pub fn preset_type(&self) -> PresetType
Returns the enum value of preset_type
, or the default if the field is unset or set to an invalid enum value.
Sourcepub fn set_preset_type(&mut self, value: PresetType)
pub fn set_preset_type(&mut self, value: PresetType)
Sets preset_type
to the provided enum value.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Preset
impl<'de> Deserialize<'de> for Preset
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Preset, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Preset, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl Message for Preset
impl Message for Preset
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.Source§impl Serialize for Preset
impl Serialize for Preset
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl StructuralPartialEq for Preset
Auto Trait Implementations§
impl Freeze for Preset
impl RefUnwindSafe for Preset
impl Send for Preset
impl Sync for Preset
impl Unpin for Preset
impl UnwindSafe for Preset
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request