Struct CampaignFlight
pub struct CampaignFlight { /* private fields */ }Expand description
Campaign flight labels.
Implementations§
§impl CampaignFlight
impl CampaignFlight
pub fn new(
start_label: impl AsRef<str>,
) -> Result<CampaignFlight, CampaignValueError>
pub fn new( start_label: impl AsRef<str>, ) -> Result<CampaignFlight, CampaignValueError>
Creates a campaign flight with a start label.
§Errors
Returns [CampaignValueError::Empty] when the start label is empty.
pub fn with_end_label(
self,
end_label: impl AsRef<str>,
) -> Result<CampaignFlight, CampaignValueError>
pub fn with_end_label( self, end_label: impl AsRef<str>, ) -> Result<CampaignFlight, CampaignValueError>
pub fn start_label(&self) -> &str
pub fn start_label(&self) -> &str
Returns the start label.
Trait Implementations§
§impl Clone for CampaignFlight
impl Clone for CampaignFlight
§fn clone(&self) -> CampaignFlight
fn clone(&self) -> CampaignFlight
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for CampaignFlight
impl Debug for CampaignFlight
§impl PartialEq for CampaignFlight
impl PartialEq for CampaignFlight
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