#[non_exhaustive]pub struct RithmicModifyOrderReferenceData {
pub basket_id: String,
pub user_tag: String,
}Expand description
Change the user_tag reported on an order’s subsequent notifications.
§Example
use rithmic_rs::RithmicModifyOrderReferenceData;
let command = RithmicModifyOrderReferenceData::new()
.basket_id("123456")
.user_tag("new-tag")
.build()?;Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.basket_id: StringThe basket_id from the order notification.
user_tag: StringThe new tag. Empty is how a tag is cleared, so it is sent as given.
Implementations§
Source§impl RithmicModifyOrderReferenceData
impl RithmicModifyOrderReferenceData
Sourcepub fn basket_id(self, basket_id: impl Into<String>) -> Self
pub fn basket_id(self, basket_id: impl Into<String>) -> Self
The basket_id of the order to retag.
Sourcepub fn validate(&self) -> Result<(), RithmicError>
pub fn validate(&self) -> Result<(), RithmicError>
Requires the basket_id; the tag itself may be empty.
Sourcepub fn build(self) -> Result<Self, RithmicError>
pub fn build(self) -> Result<Self, RithmicError>
Requires the basket_id; the tag itself may be empty.
Trait Implementations§
Source§impl Clone for RithmicModifyOrderReferenceData
impl Clone for RithmicModifyOrderReferenceData
Source§fn clone(&self) -> RithmicModifyOrderReferenceData
fn clone(&self) -> RithmicModifyOrderReferenceData
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 Default for RithmicModifyOrderReferenceData
impl Default for RithmicModifyOrderReferenceData
Source§fn default() -> RithmicModifyOrderReferenceData
fn default() -> RithmicModifyOrderReferenceData
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RithmicModifyOrderReferenceData
impl<'de> Deserialize<'de> for RithmicModifyOrderReferenceData
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
impl StructuralPartialEq for RithmicModifyOrderReferenceData
Auto Trait Implementations§
impl Freeze for RithmicModifyOrderReferenceData
impl RefUnwindSafe for RithmicModifyOrderReferenceData
impl Send for RithmicModifyOrderReferenceData
impl Sync for RithmicModifyOrderReferenceData
impl Unpin for RithmicModifyOrderReferenceData
impl UnsafeUnpin for RithmicModifyOrderReferenceData
impl UnwindSafe for RithmicModifyOrderReferenceData
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