pub struct StockTransferOut {Show 22 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: StockTransferOutState,
pub state_code_raw: Option<i32>,
pub app_state: String,
pub created_at: Option<OffsetDateTime>,
pub updated_at: Option<OffsetDateTime>,
pub process_at: Option<OffsetDateTime>,
pub exec_at: Option<OffsetDateTime>,
pub agree_at: Option<OffsetDateTime>,
pub refuse_at: Option<OffsetDateTime>,
pub cancel_at: Option<OffsetDateTime>,
pub remark: String,
pub reason: String,
pub stocks: Vec<TransferStock>,
}Expand description
A stock transfer-out application (this account → another broker)
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 (the server’s name_en)
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: StockTransferOutStateState code. Only StockTransferOutState::Submitted applications can
be cancelled (the server’s can_modify is not reliable here, so it is
not modelled).
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.
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)
agree_at: Option<OffsetDateTime>Time the other broker agreed (None when not set)
refuse_at: Option<OffsetDateTime>Time the application was refused (None when not set)
cancel_at: Option<OffsetDateTime>Time the application was cancelled (None when not set)
remark: StringRemark
reason: StringReason (e.g. for a rejection)
stocks: Vec<TransferStock>Stocks in the application
Implementations§
Source§impl StockTransferOut
impl StockTransferOut
pub fn serialize<__S>(
__self: &StockTransferOut,
__serializer: __S,
) -> Result<__S::Ok, __S::Error>where
__S: Serializer,
Source§impl<'de> StockTransferOutwhere
StockTransferOut: Default,
impl<'de> StockTransferOutwhere
StockTransferOut: Default,
pub fn deserialize<__D>(
__deserializer: __D,
) -> Result<StockTransferOut, __D::Error>where
__D: Deserializer<'de>,
Source§impl StockTransferOut
impl StockTransferOut
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)
Sourcepub fn cancellable(&self) -> bool
pub fn cancellable(&self) -> bool
Whether the application can still be cancelled (only
StockTransferOutState::Submitted applications can)
Trait Implementations§
Source§impl Clone for StockTransferOut
impl Clone for StockTransferOut
Source§impl Debug for StockTransferOut
impl Debug for StockTransferOut
Source§impl Default for StockTransferOut
impl Default for StockTransferOut
Source§impl<'de> Deserialize<'de> for StockTransferOut
impl<'de> Deserialize<'de> for StockTransferOut
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 StockTransferOut
impl RefUnwindSafe for StockTransferOut
impl Send for StockTransferOut
impl Sync for StockTransferOut
impl Unpin for StockTransferOut
impl UnsafeUnpin for StockTransferOut
impl UnwindSafe for StockTransferOut
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