pub struct PbTrainingSessionTarget {
pub name: PbOneLineText,
pub sport_id: Option<PbSportIdentifier>,
pub start_time: Option<PbLocalDateTime>,
pub description: Option<PbMultiLineText>,
pub exercise_target: Vec<PbExerciseTarget>,
pub target_done: Option<bool>,
pub duration: Option<PbDuration>,
pub training_program_id: Option<PbTrainingProgramId>,
pub event_id: Option<PbEventId>,
}Fields§
§name: PbOneLineText§sport_id: Option<PbSportIdentifier>§start_time: Option<PbLocalDateTime>§description: Option<PbMultiLineText>§exercise_target: Vec<PbExerciseTarget>§target_done: Option<bool>§duration: Option<PbDuration>§training_program_id: Option<PbTrainingProgramId>§event_id: Option<PbEventId>Implementations§
Source§impl PbTrainingSessionTarget
impl PbTrainingSessionTarget
pub fn target_done(&self) -> bool
Trait Implementations§
Source§impl Clone for PbTrainingSessionTarget
impl Clone for PbTrainingSessionTarget
Source§fn clone(&self) -> PbTrainingSessionTarget
fn clone(&self) -> PbTrainingSessionTarget
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 moreSource§impl Debug for PbTrainingSessionTarget
impl Debug for PbTrainingSessionTarget
Source§impl Default for PbTrainingSessionTarget
impl Default for PbTrainingSessionTarget
Source§fn default() -> PbTrainingSessionTarget
fn default() -> PbTrainingSessionTarget
Returns the “default value” for a type. Read more
Source§impl Message for PbTrainingSessionTarget
impl Message for PbTrainingSessionTarget
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Encodes the message to a buffer. Read more
Source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Encodes the message with a length-delimiter to a buffer. Read more
Source§fn decode<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
Decodes an instance of the message from a buffer, and merges it into
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>
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.Source§impl PartialEq for PbTrainingSessionTarget
impl PartialEq for PbTrainingSessionTarget
impl StructuralPartialEq for PbTrainingSessionTarget
Auto Trait Implementations§
impl Freeze for PbTrainingSessionTarget
impl RefUnwindSafe for PbTrainingSessionTarget
impl Send for PbTrainingSessionTarget
impl Sync for PbTrainingSessionTarget
impl Unpin for PbTrainingSessionTarget
impl UnwindSafe for PbTrainingSessionTarget
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