pub struct StockTransferIn {Show 20 fields
pub id: String,
pub order_id: String,
pub market: String,
pub broker: String,
pub broker_id: String,
pub broker_en: String,
pub broker_code: String,
pub account: String,
pub state: String,
pub state_code: StockTransferInState,
pub state_code_raw: Option<i32>,
pub app_state: String,
pub can_modify: bool,
pub created_at: Option<OffsetDateTime>,
pub updated_at: Option<OffsetDateTime>,
pub process_at: Option<OffsetDateTime>,
pub exec_at: Option<OffsetDateTime>,
pub remark: String,
pub reason: String,
pub stocks: Vec<TransferStock>,
}Expand description
A stock transfer-in application (another broker → this account)
The account holder’s name and contact details at the other broker and the storage keys of uploaded proof documents are intentionally not modelled.
Fields§
§id: StringRecord ID
order_id: StringOrder ID
market: StringMarket
broker: StringName of the other broker
broker_id: StringID of the other broker
broker_en: StringEnglish name of the other broker
broker_code: StringBroker code of the other broker
account: StringAccount number at the other broker, as returned by the server (not masked)
state: StringState text, as returned by the server
state_code: StockTransferInStateState code
state_code_raw: Option<i32>The server’s numeric code of state_code, also when it is a code this
SDK does not know (state_code is then Unknown); None when the
value is missing or is not a code
app_state: StringApp-side state: APP_STATE_NOTICED (noticed) means the user
tapped “I have notified the broker” in the app (the user’s own
confirmation, not a Longbridge action); default otherwise. See
Self::user_notified_broker.
can_modify: boolWhether the application can still be cancelled or changed
created_at: Option<OffsetDateTime>Created time
updated_at: Option<OffsetDateTime>Updated time
process_at: Option<OffsetDateTime>Processing start time (None when not set)
exec_at: Option<OffsetDateTime>Execution time (None when not executed)
remark: StringRemark
reason: StringReason (e.g. for a failure)
stocks: Vec<TransferStock>Stocks in the application
Implementations§
Source§impl StockTransferIn
impl StockTransferIn
pub fn serialize<__S>(
__self: &StockTransferIn,
__serializer: __S,
) -> Result<__S::Ok, __S::Error>where
__S: Serializer,
Source§impl<'de> StockTransferInwhere
StockTransferIn: Default,
impl<'de> StockTransferInwhere
StockTransferIn: Default,
pub fn deserialize<__D>(
__deserializer: __D,
) -> Result<StockTransferIn, __D::Error>where
__D: Deserializer<'de>,
Source§impl StockTransferIn
impl StockTransferIn
Sourcepub fn user_notified_broker(&self) -> bool
pub fn user_notified_broker(&self) -> bool
Whether the user confirmed in the app that the other broker was
notified (app_state is APP_STATE_NOTICED)
Trait Implementations§
Source§impl Clone for StockTransferIn
impl Clone for StockTransferIn
Source§impl Debug for StockTransferIn
impl Debug for StockTransferIn
Source§impl Default for StockTransferIn
impl Default for StockTransferIn
Source§impl<'de> Deserialize<'de> for StockTransferIn
impl<'de> Deserialize<'de> for StockTransferIn
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Auto Trait Implementations§
impl Freeze for StockTransferIn
impl RefUnwindSafe for StockTransferIn
impl Send for StockTransferIn
impl Sync for StockTransferIn
impl Unpin for StockTransferIn
impl UnsafeUnpin for StockTransferIn
impl UnwindSafe for StockTransferIn
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more