pub struct JobEvent {
pub type: i32,
pub jobs: Vec<String>,
}
Expand description
An event issued when a job seeker interacts with the application that implements Cloud Talent Solution.
Fields§
§type: i32
Required. The type of the event (see [JobEventType][google.cloud.talent.v4.JobEvent.JobEventType]).
jobs: Vec<String>
Required. The [job name(s)][google.cloud.talent.v4.Job.name] associated with this event. For example, if this is an [impression][google.cloud.talent.v4.JobEvent.JobEventType.IMPRESSION] event, this field contains the identifiers of all jobs shown to the job seeker. If this was a [view][google.cloud.talent.v4.JobEvent.JobEventType.VIEW] event, this field contains the identifier of the viewed job.
The format is “projects/{project_id}/tenants/{tenant_id}/jobs/{job_id}”, for example, “projects/foo/tenants/bar/jobs/baz”.
Implementations§
source§impl JobEvent
impl JobEvent
sourcepub fn type(&self) -> JobEventType
pub fn type(&self) -> JobEventType
Returns the enum value of type
, or the default if the field is set to an invalid enum value.
sourcepub fn set_type(&mut self, value: JobEventType)
pub fn set_type(&mut self, value: JobEventType)
Sets type
to the provided enum value.
Trait Implementations§
source§impl Message for JobEvent
impl Message for JobEvent
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
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,
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(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
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(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
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,
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,
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,
self
.source§impl PartialEq for JobEvent
impl PartialEq for JobEvent
impl StructuralPartialEq for JobEvent
Auto Trait Implementations§
impl Freeze for JobEvent
impl RefUnwindSafe for JobEvent
impl Send for JobEvent
impl Sync for JobEvent
impl Unpin for JobEvent
impl UnwindSafe for JobEvent
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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