INNER CODE UNIT · Rust
as_schema
graphql-rust/graphql-client · graphql-introspection-query/src/introspection_response.rs:293
pub fn as_schema(&self) -> &SchemaContainer {
match self {
IntrospectionResponse::FullResponse(full_response) => &full_response.data,
IntrospectionResponse::Schema(schema) => schema,
}
}
pub fn into_schema(self) -> SchemaContainer {
match self {
IntrospectionResponse::FullResponse(full_response) => full_response.data,
IntrospectionResponse::Schema(schema) => schema,
}
}
}