[][src]Struct apollo_client::Response

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

Apollo config api response.

Fields

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

Methods

impl Response[src]

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

Get the configurations.content field of the response.

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

Infer the configuration namespace kind.

pub fn deserialize_configurations<T: DeserializeOwned>(&self) -> ClientResult<T>[src]

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

Trait Implementations

impl Debug for Response[src]

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

impl Serialize for Response[src]

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.