pub struct Consumer {
pub links: Option<Value>,
pub actions: Vec<ConsumerAction>,
pub authentication_type: Option<AuthenticationType>,
pub description: Option<String>,
pub external_configuration: Option<ExternalConfigurationDescriptor>,
pub id: Option<String>,
pub image_url: Option<String>,
pub information_url: Option<String>,
pub input_descriptors: Vec<InputDescriptor>,
pub name: Option<String>,
pub url: Option<String>,
}Expand description
Defines the data contract of a consumer.
Fields§
§links: Option<Value>Links
actions: Vec<ConsumerAction>Gets this consumer’s actions.
authentication_type: Option<AuthenticationType>Gets or sets this consumer’s authentication type.
description: Option<String>Gets or sets this consumer’s localized description.
external_configuration: Option<ExternalConfigurationDescriptor>Describes how to configure a subscription that is managed externally.
id: Option<String>Gets or sets this consumer’s identifier.
image_url: Option<String>Gets or sets this consumer’s image URL, if any.
information_url: Option<String>Gets or sets this consumer’s information URL, if any.
input_descriptors: Vec<InputDescriptor>Gets or sets this consumer’s input descriptors.
name: Option<String>Gets or sets this consumer’s localized name.
url: Option<String>The url for this resource
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Consumer
impl<'de> Deserialize<'de> for Consumer
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
impl StructuralPartialEq for Consumer
Auto Trait Implementations§
impl Freeze for Consumer
impl RefUnwindSafe for Consumer
impl Send for Consumer
impl Sync for Consumer
impl Unpin for Consumer
impl UnwindSafe for Consumer
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