pub struct SubgraphConfig {
pub routing_url: Option<String>,
pub schema: SchemaSource,
}Expand description
Config for a single subgraph
Fields§
§routing_url: Option<String>The routing URL for the subgraph. This will appear in supergraph SDL and instructs the graph router to send all requests for this subgraph to this URL.
schema: SchemaSourceThe location of the subgraph’s SDL
Implementations§
Trait Implementations§
Source§impl Clone for SubgraphConfig
impl Clone for SubgraphConfig
Source§fn clone(&self) -> SubgraphConfig
fn clone(&self) -> SubgraphConfig
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 SubgraphConfig
impl Debug for SubgraphConfig
Source§impl<'de> Deserialize<'de> for SubgraphConfig
impl<'de> Deserialize<'de> for SubgraphConfig
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
Auto Trait Implementations§
impl Freeze for SubgraphConfig
impl RefUnwindSafe for SubgraphConfig
impl Send for SubgraphConfig
impl Sync for SubgraphConfig
impl Unpin for SubgraphConfig
impl UnwindSafe for SubgraphConfig
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