pub struct GroupRequestBody {
pub accounts: Vec<GroupRequestBodyAccount>,
pub default_method: Option<AllocationMethod>,
pub name: String,
pub prev_name: Option<String>,
}Fields§
§accounts: Vec<GroupRequestBodyAccount>An array of accounts that should be held in the allocation group and, if using a User-specified allocaiton method, the value correlated to the allocation.
default_method: Option<AllocationMethod>Interactive Brokers supports two forms of allocation methods. Allocation methods that have calculations completed by Interactive Brokers, and a set of allocation methods calculated by the user and then specified. IB-computed allocation methods:
A- Available EquityE- EqualN- Net Liquidation Value
User-specified allocation methods:
C- Cash QuantityP- PercentageR- RatiosS- Shares
name: StringName used to refer to your allocation group. If prev_name is specified, this will become the new name of the group.
- Example:
"Group_1_NetLiq".to_string()
prev_name: Option<String>Can be used to rename a group. Using this field will recognize the previous name, while the “name” filed will mark the updated name.
- Example:
Some("Group_0_NetLiq".to_string())
Trait Implementations§
Source§impl Clone for GroupRequestBody
impl Clone for GroupRequestBody
Source§fn clone(&self) -> GroupRequestBody
fn clone(&self) -> GroupRequestBody
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 GroupRequestBody
impl Debug for GroupRequestBody
Source§impl Default for GroupRequestBody
impl Default for GroupRequestBody
Source§impl PartialEq for GroupRequestBody
impl PartialEq for GroupRequestBody
Source§impl Serialize for GroupRequestBody
impl Serialize for GroupRequestBody
Source§impl<'v_a> ValidateArgs<'v_a> for GroupRequestBody
impl<'v_a> ValidateArgs<'v_a> for GroupRequestBody
impl StructuralPartialEq for GroupRequestBody
Auto Trait Implementations§
impl Freeze for GroupRequestBody
impl RefUnwindSafe for GroupRequestBody
impl Send for GroupRequestBody
impl Sync for GroupRequestBody
impl Unpin for GroupRequestBody
impl UnsafeUnpin for GroupRequestBody
impl UnwindSafe for GroupRequestBody
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§impl<T> ServiceExt for T
impl<T> ServiceExt for T
§fn trace_for_http(self) -> Trace<Self, SharedClassifier<ServerErrorsAsFailures>>where
Self: Sized,
fn trace_for_http(self) -> Trace<Self, SharedClassifier<ServerErrorsAsFailures>>where
Self: Sized,
High level tracing that classifies responses using HTTP status codes. Read more
§fn trace_for_grpc(self) -> Trace<Self, SharedClassifier<GrpcErrorsAsFailures>>where
Self: Sized,
fn trace_for_grpc(self) -> Trace<Self, SharedClassifier<GrpcErrorsAsFailures>>where
Self: Sized,
High level tracing that classifies responses using gRPC headers. Read more
§fn follow_redirects(self) -> FollowRedirect<Self>where
Self: Sized,
fn follow_redirects(self) -> FollowRedirect<Self>where
Self: Sized,
§fn set_request_id<M>(
self,
header_name: HeaderName,
make_request_id: M,
) -> SetRequestId<Self, M>where
Self: Sized,
M: MakeRequestId,
fn set_request_id<M>(
self,
header_name: HeaderName,
make_request_id: M,
) -> SetRequestId<Self, M>where
Self: Sized,
M: MakeRequestId,
Add request id header and extension. Read more
§fn set_x_request_id<M>(self, make_request_id: M) -> SetRequestId<Self, M>where
Self: Sized,
M: MakeRequestId,
fn set_x_request_id<M>(self, make_request_id: M) -> SetRequestId<Self, M>where
Self: Sized,
M: MakeRequestId,
Add request id header and extension, using
x-request-id as the header name. Read more§fn propagate_request_id(
self,
header_name: HeaderName,
) -> PropagateRequestId<Self>where
Self: Sized,
fn propagate_request_id(
self,
header_name: HeaderName,
) -> PropagateRequestId<Self>where
Self: Sized,
Propgate request ids from requests to responses. Read more
§fn propagate_x_request_id(self) -> PropagateRequestId<Self>where
Self: Sized,
fn propagate_x_request_id(self) -> PropagateRequestId<Self>where
Self: Sized,
Propgate request ids from requests to responses, using
x-request-id as the header name. Read more§fn request_body_limit(self, limit: usize) -> RequestBodyLimit<Self>where
Self: Sized,
fn request_body_limit(self, limit: usize) -> RequestBodyLimit<Self>where
Self: Sized,
Intercept requests with over-sized payloads and convert them into
413 Payload Too Large responses. Read more