[][src]Struct apollo_client::Response

pub struct Response {
    pub app_id: String,
    pub cluster: String,
    pub namespace_name: String,
    pub configurations: HashMap<String, String>,
    pub release_key: String,
}

Apollo config api response.

Fields

app_id: Stringcluster: Stringnamespace_name: Stringconfigurations: HashMap<String, String>release_key: String

Methods

impl Response[src]

pub fn get_configurations_content(&self) -> ApolloClientResult<&str>[src]

Get the configurations.content field of the response.

pub fn infer_kind(&self) -> ConfigurationKind[src]

Infer the configuration namespace kind.

pub fn deserialize_configuration<T: DeserializeOwned>(
    &self
) -> ApolloClientResult<T>
[src]

Deserialize the configurations field for properties, or configurations.content for other namespace kind, without wrapper.

pub fn deserialize_to_configuration<T: DeserializeOwned>(
    &self
) -> ApolloClientResult<Configuration<T>>
[src]

Deserialize the configurations field for properties, or configurations.content for other namespace kind, with Configuration wrapper.

Trait Implementations

impl Debug for Response[src]

impl<'de> Deserialize<'de> for Response[src]

impl FromResponses for Response[src]

type Err = ApolloClientError

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.