You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<sbe:messageSchema
xmlns:ns2="http://www.fixprotocol.org/ns/simple/1.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:sbe="http://fixprotocol.io/2016/sbe"
package="b3.entrypoint.fixp.sbe"
id="1"
version="4"
semanticVersion="8.2.3"
description="B3 Binary Entrypoint FIXP messages"
byteOrder="littleEndian"
xsi:schemaLocation="http://fixprotocol.io/2016/sbe sbe.xsd">
<types>
<setname="EventIndicator"encodingType="uint8"description="Set of indicators for a given event. First use case: indicates possible retransmission of message during recovery process."sinceVersion="4">
<choicename="PossResend"description="1=Message is sent during recovery process, 0=Normal message.">0</choice>
</set>
<compositename="messageHeader"description="Message identifiers and length of message root.">
<typename="blockLength"primitiveType="uint16"description="Length of the root of the FIX message contained before repeating groups or variable/conditions fields."/>
<typename="templateId"primitiveType="uint16"description="Template ID used to encode the message."/>
<typename="schemaId"primitiveType="uint16"description="ID of the system publishing the message."/>
<typename="version"primitiveType="uint16"description="Schema version."/>
</composite>
<compositename="OutboundBusinessHeader"description="Header used for outbound business messages.">
<refname="eventIndicator"type="EventIndicator"sinceVersion="4"/>
</composite>
</types>
<sbe:messagename="ExecutionReport_New"id="200"description="Execution Report - New message is sent in response to a NewOrderSingle or SimpleNewOrder messages, or also from a restated iceberg order.">
<fieldname="businessHeader"type="OutboundBusinessHeader"id="35524"description="Common header to all outbound business messages."/>
</sbe:message>
</sbe:messageSchema>
CLI tool 1.33.2 generates Rust code that doesn't compile due to:
error[E0599]: the method `acting_version` exists for reference `&OutboundBusinessHeaderDecoder<P>`, but its trait bounds were not satisfied
--> crates/b3_entrypoint_fixp_sbe/src/outbound_business_header_codec.rs:101:21
|
58 | pub struct OutboundBusinessHeaderDecoder<P> {
| ------------------------------------------- doesn't satisfy `OutboundBusinessHeaderDecoder<P>: ActingVersion`
...
101 | if self.acting_version() < 4 {
| ^^^^^^^^^^^^^^ method cannot be called on `&OutboundBusinessHeaderDecoder<P>` due to unsatisfied trait bounds
OutboundBusinessHeaderDecoder does implement self.acting_version(), but just for a P: Reader<'a> + ActingVersion + Default:
For the sample schema:
CLI tool 1.33.2 generates Rust code that doesn't compile due to:
OutboundBusinessHeaderDecoder does implement
self.acting_version()
, but just for aP: Reader<'a> + ActingVersion + Default
:And error occurs because it's trying to use
self.acting_version()
for aP
that does not implementActingVersion
:It seems that this problem is a continuation of this one: #984 which was already closed.
The text was updated successfully, but these errors were encountered: