pub struct CorporateActionsParams {
pub symbols: Option<String>,
pub types: Option<String>,
pub start: Option<String>,
pub end: Option<String>,
pub limit: Option<u32>,
pub page_token: Option<String>,
}Expand description
Parameters for corporate actions request.
Fields§
§symbols: Option<String>Filter by symbols.
types: Option<String>Filter by action types.
start: Option<String>Start date (YYYY-MM-DD).
end: Option<String>End date (YYYY-MM-DD).
limit: Option<u32>Maximum number of results.
page_token: Option<String>Pagination token.
Implementations§
Source§impl CorporateActionsParams
impl CorporateActionsParams
Sourcepub fn new() -> CorporateActionsParams
pub fn new() -> CorporateActionsParams
Create new empty parameters.
Sourcepub fn symbols(self, symbols: &str) -> CorporateActionsParams
pub fn symbols(self, symbols: &str) -> CorporateActionsParams
Filter by symbols.
Sourcepub fn types(self, types: &str) -> CorporateActionsParams
pub fn types(self, types: &str) -> CorporateActionsParams
Filter by action types.
Sourcepub fn date_range(self, start: &str, end: &str) -> CorporateActionsParams
pub fn date_range(self, start: &str, end: &str) -> CorporateActionsParams
Set date range.
Sourcepub fn limit(self, limit: u32) -> CorporateActionsParams
pub fn limit(self, limit: u32) -> CorporateActionsParams
Set limit.
Trait Implementations§
Source§impl Clone for CorporateActionsParams
impl Clone for CorporateActionsParams
Source§fn clone(&self) -> CorporateActionsParams
fn clone(&self) -> CorporateActionsParams
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 CorporateActionsParams
impl Debug for CorporateActionsParams
Source§impl Default for CorporateActionsParams
impl Default for CorporateActionsParams
Source§fn default() -> CorporateActionsParams
fn default() -> CorporateActionsParams
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CorporateActionsParams
impl<'de> Deserialize<'de> for CorporateActionsParams
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<CorporateActionsParams, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<CorporateActionsParams, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for CorporateActionsParams
impl Serialize for CorporateActionsParams
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for CorporateActionsParams
impl RefUnwindSafe for CorporateActionsParams
impl Send for CorporateActionsParams
impl Sync for CorporateActionsParams
impl Unpin for CorporateActionsParams
impl UnwindSafe for CorporateActionsParams
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