sui_graphql_client::query_types

Struct ServiceConfig

Source
pub struct ServiceConfig {
Show 13 fields pub default_page_size: i32, pub enabled_features: Vec<Feature>, pub max_move_value_depth: i32, pub max_output_nodes: i32, pub max_page_size: i32, pub max_query_depth: i32, pub max_query_nodes: i32, pub max_query_payload_size: i32, pub max_type_argument_depth: i32, pub max_type_argument_width: i32, pub max_type_nodes: i32, pub mutation_timeout_ms: i32, pub request_timeout_ms: i32,
}

Fields§

§default_page_size: i32

Default number of elements allowed on a single page of a connection.

§enabled_features: Vec<Feature>

List of all features that are enabled on this RPC service.

§max_move_value_depth: i32

Maximum estimated cost of a database query used to serve a GraphQL request. This is measured in the same units that the database uses in EXPLAIN queries. Maximum nesting allowed in struct fields when calculating the layout of a single Move Type.

§max_output_nodes: i32

The maximum number of output nodes in a GraphQL response. Non-connection nodes have a count of 1, while connection nodes are counted as the specified ‘first’ or ‘last’ number of items, or the default_page_size as set by the server if those arguments are not set. Counts accumulate multiplicatively down the query tree. For example, if a query starts with a connection of first: 10 and has a field to a connection with last: 20, the count at the second level would be 200 nodes. This is then summed to the count of 10 nodes at the first level, for a total of 210 nodes.

§max_page_size: i32

Maximum number of elements allowed on a single page of a connection.

§max_query_depth: i32

The maximum depth a GraphQL query can be to be accepted by this service.

§max_query_nodes: i32

The maximum number of nodes (field names) the service will accept in a single query.

§max_query_payload_size: i32

Maximum length of a query payload string.

§max_type_argument_depth: i32

Maximum nesting allowed in type arguments in Move Types resolved by this service.

§max_type_argument_width: i32

Maximum number of type arguments passed into a generic instantiation of a Move Type resolved by this service.

§max_type_nodes: i32

Maximum number of structs that need to be processed when calculating the layout of a single Move Type.

§mutation_timeout_ms: i32

Maximum time in milliseconds spent waiting for a response from fullnode after issuing a a transaction to execute. Note that the transaction may still succeed even in the case of a timeout. Transactions are idempotent, so a transaction that times out should be resubmitted until the network returns a definite response (success or failure, not timeout).

§request_timeout_ms: i32

Maximum time in milliseconds that will be spent to serve one query request.

Trait Implementations§

Source§

impl Debug for ServiceConfig

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for ServiceConfig

Source§

fn deserialize<__D>(deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl QueryFragment for ServiceConfig

Source§

const TYPE: Option<&'static str>

The name of the type in the GraphQL schema
Source§

type SchemaType = ServiceConfig

The type in a schema that this QueryFragment represents
Source§

type VariablesFields = ()

The variables that are required to execute this QueryFragment
Source§

fn query(builder: SelectionBuilder<'_, Self::SchemaType, Self::VariablesFields>)

Adds this fragment to the query being built by builder
Source§

fn name() -> Option<Cow<'static, str>>

The name of this fragment, useful for operations, maybe fragments if we ever support them…

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<U> As for U

§

fn as_<T>(self) -> T
where T: CastFrom<U>,

Casts self to type T. The semantics of numeric casting with the as operator are followed, so <T as As>::as_::<U> can be used in the same way as T as U for numeric conversions. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

§

impl<T> ErasedDestructor for T
where T: 'static,

§

impl<T> IsFieldType<T> for T

§

impl<T> MaybeSendSync for T