pub struct CampaignDraft {
pub resource_name: String,
pub draft_id: i64,
pub base_campaign: String,
pub name: String,
pub draft_campaign: String,
pub status: i32,
pub has_experiment_running: bool,
pub long_running_operation: String,
}
Expand description
A campaign draft.
Fields§
§resource_name: String
Immutable. The resource name of the campaign draft. Campaign draft resource names have the form:
customers/{customer_id}/campaignDrafts/{base_campaign_id}~{draft_id}
draft_id: i64
Output only. The ID of the draft.
This field is read-only.
base_campaign: String
Immutable. The base campaign to which the draft belongs.
name: String
The name of the campaign draft.
This field is required and should not be empty when creating new campaign drafts.
It must not contain any null (code point 0x0), NL line feed (code point 0xA) or carriage return (code point 0xD) characters.
draft_campaign: String
Output only. Resource name of the Campaign that results from overlaying the draft changes onto the base campaign.
This field is read-only.
status: i32
Output only. The status of the campaign draft. This field is read-only.
When a new campaign draft is added, the status defaults to PROPOSED.
has_experiment_running: bool
Output only. Whether there is an experiment based on this draft currently serving.
long_running_operation: String
Output only. The resource name of the long-running operation that can be used to poll for completion of draft promotion. This is only set if the draft promotion is in progress or finished.
Implementations§
Source§impl CampaignDraft
impl CampaignDraft
Sourcepub fn status(&self) -> CampaignDraftStatus
pub fn status(&self) -> CampaignDraftStatus
Returns the enum value of status
, or the default if the field is set to an invalid enum value.
Sourcepub fn set_status(&mut self, value: CampaignDraftStatus)
pub fn set_status(&mut self, value: CampaignDraftStatus)
Sets status
to the provided enum value.
Trait Implementations§
Source§impl Clone for CampaignDraft
impl Clone for CampaignDraft
Source§fn clone(&self) -> CampaignDraft
fn clone(&self) -> CampaignDraft
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for CampaignDraft
impl Debug for CampaignDraft
Source§impl Default for CampaignDraft
impl Default for CampaignDraft
Source§impl Message for CampaignDraft
impl Message for CampaignDraft
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
Source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
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,
Source§fn decode<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
self
. Read moreSource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
self
.Source§impl PartialEq for CampaignDraft
impl PartialEq for CampaignDraft
impl StructuralPartialEq for CampaignDraft
Auto Trait Implementations§
impl Freeze for CampaignDraft
impl RefUnwindSafe for CampaignDraft
impl Send for CampaignDraft
impl Sync for CampaignDraft
impl Unpin for CampaignDraft
impl UnwindSafe for CampaignDraft
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request