pub struct AdsSectionStatus {
pub id: &'static str,
pub required: bool,
pub present: bool,
pub carrier: &'static str,
pub content: Option<AdsContent>,
}Expand description
The status of one ADS section on a rule: which section, whether it is present, and its content when present.
Fields§
§id: &'static strThe section id (e.g. validation).
required: boolWhether the section is required (by default; callers may override).
present: boolWhether the section’s content is present on the rule.
carrier: &'static strThe carrier field or attribute key.
content: Option<AdsContent>The rendered content when present.
Trait Implementations§
Source§impl Clone for AdsSectionStatus
impl Clone for AdsSectionStatus
Source§fn clone(&self) -> AdsSectionStatus
fn clone(&self) -> AdsSectionStatus
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 AdsSectionStatus
impl Debug for AdsSectionStatus
Auto Trait Implementations§
impl Freeze for AdsSectionStatus
impl RefUnwindSafe for AdsSectionStatus
impl Send for AdsSectionStatus
impl Sync for AdsSectionStatus
impl Unpin for AdsSectionStatus
impl UnsafeUnpin for AdsSectionStatus
impl UnwindSafe for AdsSectionStatus
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