pub struct CustomerExtensionSetting {
pub resource_name: String,
pub extension_type: i32,
pub extension_feed_items: Vec<String>,
pub device: i32,
}
Expand description
A customer extension setting.
Fields§
§resource_name: String
Immutable. The resource name of the customer extension setting. CustomerExtensionSetting resource names have the form:
customers/{customer_id}/customerExtensionSettings/{extension_type}
extension_type: i32
Immutable. The extension type of the customer extension setting.
extension_feed_items: Vec<String>
The resource names of the extension feed items to serve under the customer. ExtensionFeedItem resource names have the form:
customers/{customer_id}/extensionFeedItems/{feed_item_id}
device: i32
The device for which the extensions will serve. Optional.
Implementations§
Source§impl CustomerExtensionSetting
impl CustomerExtensionSetting
Sourcepub fn extension_type(&self) -> ExtensionType
pub fn extension_type(&self) -> ExtensionType
Returns the enum value of extension_type
, or the default if the field is set to an invalid enum value.
Sourcepub fn set_extension_type(&mut self, value: ExtensionType)
pub fn set_extension_type(&mut self, value: ExtensionType)
Sets extension_type
to the provided enum value.
Sourcepub fn device(&self) -> ExtensionSettingDevice
pub fn device(&self) -> ExtensionSettingDevice
Returns the enum value of device
, or the default if the field is set to an invalid enum value.
Sourcepub fn set_device(&mut self, value: ExtensionSettingDevice)
pub fn set_device(&mut self, value: ExtensionSettingDevice)
Sets device
to the provided enum value.
Trait Implementations§
Source§impl Clone for CustomerExtensionSetting
impl Clone for CustomerExtensionSetting
Source§fn clone(&self) -> CustomerExtensionSetting
fn clone(&self) -> CustomerExtensionSetting
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for CustomerExtensionSetting
impl Debug for CustomerExtensionSetting
Source§impl Default for CustomerExtensionSetting
impl Default for CustomerExtensionSetting
Source§impl Message for CustomerExtensionSetting
impl Message for CustomerExtensionSetting
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
Source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
Source§fn decode<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
self
. Read moreSource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
self
.Source§impl PartialEq for CustomerExtensionSetting
impl PartialEq for CustomerExtensionSetting
impl StructuralPartialEq for CustomerExtensionSetting
Auto Trait Implementations§
impl Freeze for CustomerExtensionSetting
impl RefUnwindSafe for CustomerExtensionSetting
impl Send for CustomerExtensionSetting
impl Sync for CustomerExtensionSetting
impl Unpin for CustomerExtensionSetting
impl UnwindSafe for CustomerExtensionSetting
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request