pub struct ProviderView {
pub available: Option<bool>,
pub category: Option<String>,
pub connected: Option<bool>,
pub connection: Option<Box<ConnectionView>>,
pub description: Option<String>,
pub id: Option<String>,
pub name: Option<String>,
}Fields§
§available: Option<bool>Available is whether THIS DEPLOYMENT has the provider’s app credentials, so connect can succeed. False renders the card without a working Connect button.
category: Option<String>Category groups the card ("Communication", "Developer", "Marketing").
connected: Option<bool>Connected is whether this org has a live connection to the provider.
connection: Option<Box<ConnectionView>>Connection is the connected account’s non-secret detail. Absent when the org has no connection; tokens NEVER appear here (they live only in KMS).
description: Option<String>Description is the one-line pitch the console card shows.
id: Option<String>ID is the provider’s registry id and the :provider path segment ("slack").
name: Option<String>Name is the provider’s display name ("Slack").
Implementations§
Source§impl ProviderView
impl ProviderView
pub fn new() -> ProviderView
Trait Implementations§
Source§impl Clone for ProviderView
impl Clone for ProviderView
Source§fn clone(&self) -> ProviderView
fn clone(&self) -> ProviderView
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ProviderView
impl Debug for ProviderView
Source§impl Default for ProviderView
impl Default for ProviderView
Source§fn default() -> ProviderView
fn default() -> ProviderView
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ProviderView
impl<'de> Deserialize<'de> for ProviderView
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
Source§impl PartialEq for ProviderView
impl PartialEq for ProviderView
Source§impl Serialize for ProviderView
impl Serialize for ProviderView
impl StructuralPartialEq for ProviderView
Auto Trait Implementations§
impl Freeze for ProviderView
impl RefUnwindSafe for ProviderView
impl Send for ProviderView
impl Sync for ProviderView
impl Unpin for ProviderView
impl UnsafeUnpin for ProviderView
impl UnwindSafe for ProviderView
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