pub struct Enterprise {
    pub app_auto_approval_enabled: Option<bool>,
    pub contact_info: Option<ContactInfo>,
    pub enabled_notification_types: Option<Vec<String>>,
    pub enterprise_display_name: Option<String>,
    pub logo: Option<ExternalData>,
    pub name: Option<String>,
    pub primary_color: Option<i32>,
    pub pubsub_topic: Option<String>,
    pub signin_details: Option<Vec<SigninDetail>>,
    pub terms_and_conditions: Option<Vec<TermsAndConditions>>,
}
Expand description

Fields§

§app_auto_approval_enabled: Option<bool>

Deprecated and unused.

§contact_info: Option<ContactInfo>

The enterprise contact info of an EMM-managed enterprise.

§enabled_notification_types: Option<Vec<String>>

The types of Google Pub/Sub notifications enabled for the enterprise.

§enterprise_display_name: Option<String>

The name of the enterprise displayed to users. This field has a maximum length of 100 characters.

An image displayed as a logo during device provisioning. Supported types are: image/bmp, image/gif, image/x-ico, image/jpeg, image/png, image/webp, image/vnd.wap.wbmp, image/x-adobe-dng.

§name: Option<String>

The name of the enterprise which is generated by the server during creation, in the form enterprises/{enterpriseId}.

§primary_color: Option<i32>

A color in RGB format that indicates the predominant color to display in the device management app UI. The color components are stored as follows: (red << 16) | (green << 8) | blue, where the value of each component is between 0 and 255, inclusive.

§pubsub_topic: Option<String>

The topic which Pub/Sub notifications are published to, in the form projects/{project}/topics/{topic}. This field is only required if Pub/Sub notifications are enabled.

§signin_details: Option<Vec<SigninDetail>>

Sign-in details of the enterprise.

§terms_and_conditions: Option<Vec<TermsAndConditions>>

Terms and conditions that must be accepted when provisioning a device for this enterprise. A page of terms is generated for each value in this list.

Trait Implementations§

source§

impl Clone for Enterprise

source§

fn clone(&self) -> Enterprise

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Enterprise

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for Enterprise

source§

fn default() -> Enterprise

Returns the “default value” for a type. Read more
source§

impl<'de> Deserialize<'de> for Enterprise

source§

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 Serialize for Enterprise

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl RequestValue for Enterprise

source§

impl Resource for Enterprise

source§

impl ResponseResult for Enterprise

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

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