pub struct PluginConfigSettingManifest {
pub key: String,
pub value_schema: Option<PluginConfigValueSchema>,
pub required: bool,
pub default_json: Option<String>,
pub constraints: Vec<PluginConfigConstraintManifest>,
pub apply_mode: i32,
pub restart_scope: i32,
pub visibility: i32,
pub description: Option<String>,
pub presentation: Option<PluginConfigPresentationManifest>,
pub control_behavior: Option<PluginConfigControlBehavior>,
}Fields§
§key: String§value_schema: Option<PluginConfigValueSchema>§required: bool§default_json: Option<String>§constraints: Vec<PluginConfigConstraintManifest>§apply_mode: i32§restart_scope: i32§visibility: i32§description: Option<String>§presentation: Option<PluginConfigPresentationManifest>§control_behavior: Option<PluginConfigControlBehavior>Implementations§
Source§impl PluginConfigSettingManifest
impl PluginConfigSettingManifest
Sourcepub fn default_json(&self) -> &str
pub fn default_json(&self) -> &str
Returns the value of default_json, or the default value if default_json is unset.
Sourcepub fn apply_mode(&self) -> PluginConfigApplyMode
pub fn apply_mode(&self) -> PluginConfigApplyMode
Returns the enum value of apply_mode, or the default if the field is set to an invalid enum value.
Sourcepub fn set_apply_mode(&mut self, value: PluginConfigApplyMode)
pub fn set_apply_mode(&mut self, value: PluginConfigApplyMode)
Sets apply_mode to the provided enum value.
Sourcepub fn restart_scope(&self) -> PluginConfigRestartScope
pub fn restart_scope(&self) -> PluginConfigRestartScope
Returns the enum value of restart_scope, or the default if the field is set to an invalid enum value.
Sourcepub fn set_restart_scope(&mut self, value: PluginConfigRestartScope)
pub fn set_restart_scope(&mut self, value: PluginConfigRestartScope)
Sets restart_scope to the provided enum value.
Sourcepub fn visibility(&self) -> PluginConfigVisibility
pub fn visibility(&self) -> PluginConfigVisibility
Returns the enum value of visibility, or the default if the field is set to an invalid enum value.
Sourcepub fn set_visibility(&mut self, value: PluginConfigVisibility)
pub fn set_visibility(&mut self, value: PluginConfigVisibility)
Sets visibility to the provided enum value.
Sourcepub fn description(&self) -> &str
pub fn description(&self) -> &str
Returns the value of description, or the default value if description is unset.
Trait Implementations§
Source§impl Clone for PluginConfigSettingManifest
impl Clone for PluginConfigSettingManifest
Source§fn clone(&self) -> PluginConfigSettingManifest
fn clone(&self) -> PluginConfigSettingManifest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PluginConfigSettingManifest
impl Debug for PluginConfigSettingManifest
Source§impl<'de> Deserialize<'de> for PluginConfigSettingManifest
impl<'de> Deserialize<'de> for PluginConfigSettingManifest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<PluginConfigSettingBuilder> for PluginConfigSettingManifest
impl From<PluginConfigSettingBuilder> for PluginConfigSettingManifest
Source§fn from(value: PluginConfigSettingBuilder) -> Self
fn from(value: PluginConfigSettingBuilder) -> Self
Converts to this type from the input type.
Source§impl Message for PluginConfigSettingManifest
impl Message for PluginConfigSettingManifest
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
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,
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
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,
Encodes the message with a length-delimiter to a buffer. Read more
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,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
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,
Decodes a length-delimited instance of the message from the buffer.
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,
Decodes an instance of the message from a buffer, and merges it into
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,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.impl StructuralPartialEq for PluginConfigSettingManifest
Auto Trait Implementations§
impl Freeze for PluginConfigSettingManifest
impl RefUnwindSafe for PluginConfigSettingManifest
impl Send for PluginConfigSettingManifest
impl Sync for PluginConfigSettingManifest
impl Unpin for PluginConfigSettingManifest
impl UnsafeUnpin for PluginConfigSettingManifest
impl UnwindSafe for PluginConfigSettingManifest
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
Mutably borrows from an owned value. Read more