pub struct CampaignFlight { /* private fields */ }Expand description
Campaign flight labels.
Implementations§
Source§impl CampaignFlight
impl CampaignFlight
Sourcepub fn new(start_label: impl AsRef<str>) -> Result<Self, CampaignValueError>
pub fn new(start_label: impl AsRef<str>) -> Result<Self, CampaignValueError>
Creates a campaign flight with a start label.
§Errors
Returns CampaignValueError::Empty when the start label is empty.
Sourcepub fn with_end_label(
self,
end_label: impl AsRef<str>,
) -> Result<Self, CampaignValueError>
pub fn with_end_label( self, end_label: impl AsRef<str>, ) -> Result<Self, CampaignValueError>
Sourcepub fn start_label(&self) -> &str
pub fn start_label(&self) -> &str
Returns the start label.
Trait Implementations§
Source§impl Clone for CampaignFlight
impl Clone for CampaignFlight
Source§fn clone(&self) -> CampaignFlight
fn clone(&self) -> CampaignFlight
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 CampaignFlight
impl Debug for CampaignFlight
Source§impl PartialEq for CampaignFlight
impl PartialEq for CampaignFlight
Source§fn eq(&self, other: &CampaignFlight) -> bool
fn eq(&self, other: &CampaignFlight) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for CampaignFlight
impl StructuralPartialEq for CampaignFlight
Auto Trait Implementations§
impl Freeze for CampaignFlight
impl RefUnwindSafe for CampaignFlight
impl Send for CampaignFlight
impl Sync for CampaignFlight
impl Unpin for CampaignFlight
impl UnsafeUnpin for CampaignFlight
impl UnwindSafe for CampaignFlight
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