pub struct RemoteTerms {
pub cost: CostBound,
pub refusals_charged: bool,
pub cancellation: CancelSupport,
pub served: ServedTerms,
pub batching: Batching,
pub max_request_bytes: u64,
pub max_response_bytes: u64,
pub idempotency_window_ms: u64,
pub privacy: Vec<String>,
}Expand description
Terms negotiated beside the descriptor (spec 009, 3.2.4). The runtime never reads them; the adapter enforces and records them.
Fields§
§cost: CostBoundThe per-call cost disclosure, in the remote side’s units. bounded
only when the remote side enforces that per-call maximum (3.8.1).
refusals_charged: boolFalse only when the remote side documents that refused requests are
not charged (3.6), which permits observed{0} for a refusal.
cancellation: CancelSupport§served: ServedTerms§batching: Batching§max_request_bytes: u64§max_response_bytes: u64§idempotency_window_ms: u64How long an attempt id is remembered for idempotency (3.3.2).
privacy: Vec<String>Privacy options the remote side accepts (3.8.2), by name.
Trait Implementations§
Source§impl Clone for RemoteTerms
impl Clone for RemoteTerms
Source§impl Debug for RemoteTerms
impl Debug for RemoteTerms
Source§impl<'de> Deserialize<'de> for RemoteTerms
impl<'de> Deserialize<'de> for RemoteTerms
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 Eq for RemoteTerms
Source§impl JsonSchema for RemoteTerms
impl JsonSchema for RemoteTerms
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for RemoteTerms
impl PartialEq for RemoteTerms
Source§impl Serialize for RemoteTerms
impl Serialize for RemoteTerms
impl StructuralPartialEq for RemoteTerms
Auto Trait Implementations§
impl Freeze for RemoteTerms
impl RefUnwindSafe for RemoteTerms
impl Send for RemoteTerms
impl Sync for RemoteTerms
impl Unpin for RemoteTerms
impl UnsafeUnpin for RemoteTerms
impl UnwindSafe for RemoteTerms
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