pub struct Spec {Show 14 fields
pub salt: String,
pub enabled: bool,
pub default_value: Option<ReturnValue>,
pub entity: i32,
pub id_type: Option<IdType>,
pub version: u32,
pub rules: Vec<Rule>,
pub is_active: Option<bool>,
pub explicit_parameters: Vec<String>,
pub has_shared_params: Option<bool>,
pub target_app_ids: Vec<String>,
pub use_new_layer_eval: Option<bool>,
pub forward_all_exposures: Option<bool>,
pub fields_used: Vec<String>,
}Fields§
§salt: String§enabled: bool§default_value: Option<ReturnValue>§entity: i32§id_type: Option<IdType>§version: u32§rules: Vec<Rule>§is_active: Option<bool>§explicit_parameters: Vec<String>§target_app_ids: Vec<String>§use_new_layer_eval: Option<bool>§forward_all_exposures: Option<bool>§fields_used: Vec<String>Implementations§
Source§impl Spec
impl Spec
Sourcepub fn entity(&self) -> EntityType
pub fn entity(&self) -> EntityType
Returns the enum value of entity, or the default if the field is set to an invalid enum value.
Sourcepub fn set_entity(&mut self, value: EntityType)
pub fn set_entity(&mut self, value: EntityType)
Sets entity to the provided enum value.
Sourcepub fn is_active(&self) -> bool
pub fn is_active(&self) -> bool
Returns the value of is_active, or the default value if is_active is unset.
Returns the value of has_shared_params, or the default value if has_shared_params is unset.
Sourcepub fn use_new_layer_eval(&self) -> bool
pub fn use_new_layer_eval(&self) -> bool
Returns the value of use_new_layer_eval, or the default value if use_new_layer_eval is unset.
Sourcepub fn forward_all_exposures(&self) -> bool
pub fn forward_all_exposures(&self) -> bool
Returns the value of forward_all_exposures, or the default value if forward_all_exposures is unset.
Trait Implementations§
Source§impl Message for Spec
impl Message for Spec
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 Spec
Auto Trait Implementations§
impl Freeze for Spec
impl RefUnwindSafe for Spec
impl Send for Spec
impl Sync for Spec
impl Unpin for Spec
impl UnwindSafe for Spec
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