pub struct MilestoneItem {
pub milestone_security: Security,
pub title: Option<String>,
pub category: Option<String>,
pub type: Option<i32>,
pub start_date: Option<String>,
pub end_date: Option<String>,
pub primary_event_security: Option<Security>,
pub related_event_list: Vec<Security>,
pub notification_message: Option<String>,
}Expand description
里程碑项
Fields§
§milestone_security: Security里程碑标的
title: Option<String>里程碑名称(多语言)
category: Option<String>一级分类标识
type: Option<i32>里程碑类型
start_date: Option<String>开始时间(UTC ISO8601,形如 2025-09-26T18:30:00Z)
end_date: Option<String>结束时间(UTC ISO8601,形如 2025-09-26T18:30:00Z)
primary_event_security: Option<Security>主事件标的
关联事件标的列表
notification_message: Option<String>通知消息(多语言)
Implementations§
Source§impl MilestoneItem
impl MilestoneItem
Sourcepub fn title(&self) -> &str
pub fn title(&self) -> &str
Returns the value of title, or the default value if title is unset.
Sourcepub fn category(&self) -> &str
pub fn category(&self) -> &str
Returns the value of category, or the default value if category is unset.
Sourcepub fn type(&self) -> EcMilestoneType
pub fn type(&self) -> EcMilestoneType
Returns the enum value of type, or the default if the field is unset or set to an invalid enum value.
Sourcepub fn set_type(&mut self, value: EcMilestoneType)
pub fn set_type(&mut self, value: EcMilestoneType)
Sets type to the provided enum value.
Sourcepub fn start_date(&self) -> &str
pub fn start_date(&self) -> &str
Returns the value of start_date, or the default value if start_date is unset.
Sourcepub fn end_date(&self) -> &str
pub fn end_date(&self) -> &str
Returns the value of end_date, or the default value if end_date is unset.
Sourcepub fn notification_message(&self) -> &str
pub fn notification_message(&self) -> &str
Returns the value of notification_message, or the default value if notification_message is unset.
Trait Implementations§
Source§impl Clone for MilestoneItem
impl Clone for MilestoneItem
Source§fn clone(&self) -> MilestoneItem
fn clone(&self) -> MilestoneItem
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 MilestoneItem
impl Debug for MilestoneItem
Source§impl Default for MilestoneItem
impl Default for MilestoneItem
Source§impl<'de> Deserialize<'de> for MilestoneItemwhere
MilestoneItem: Default,
impl<'de> Deserialize<'de> for MilestoneItemwhere
MilestoneItem: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Message for MilestoneItem
impl Message for MilestoneItem
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(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
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,
Encodes the message with a length-delimiter to a buffer. Read more
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,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
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,
Decodes a length-delimited instance of the message from the buffer.
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,
Decodes an instance of the message from a buffer, and merges it into
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,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.Source§impl PartialEq for MilestoneItem
impl PartialEq for MilestoneItem
Source§fn eq(&self, other: &MilestoneItem) -> bool
fn eq(&self, other: &MilestoneItem) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for MilestoneItem
impl Serialize for MilestoneItem
impl StructuralPartialEq for MilestoneItem
Auto Trait Implementations§
impl Freeze for MilestoneItem
impl RefUnwindSafe for MilestoneItem
impl Send for MilestoneItem
impl Sync for MilestoneItem
impl Unpin for MilestoneItem
impl UnsafeUnpin for MilestoneItem
impl UnwindSafe for MilestoneItem
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