Struct google_api_proto::google::apps::drive::labels::v2beta::UpdateLabelCopyModeRequest
source · pub struct UpdateLabelCopyModeRequest {
pub name: String,
pub copy_mode: i32,
pub use_admin_access: bool,
pub language_code: String,
pub view: i32,
}
Expand description
Request to update the CopyMode
of the given Label. Changes to this policy
are not revisioned, do not require publishing, and take effect immediately.
\
Fields§
§name: String
Required. The resource name of the Label to update.
copy_mode: i32
Required. Indicates how the applied Label, and Field values should be copied when a Drive item is copied.
use_admin_access: bool
Set to true
in order to use the user’s admin credentials. The server
will verify the user is an admin for the Label before allowing access.
language_code: String
The BCP-47 language code to use for evaluating localized field labels. When not specified, values in the default configured language will be used.
view: i32
When specified, only certain fields belonging to the indicated view will be returned.
Implementations§
source§impl UpdateLabelCopyModeRequest
impl UpdateLabelCopyModeRequest
sourcepub fn copy_mode(&self) -> CopyMode
pub fn copy_mode(&self) -> CopyMode
Returns the enum value of copy_mode
, or the default if the field is set to an invalid enum value.
sourcepub fn set_copy_mode(&mut self, value: CopyMode)
pub fn set_copy_mode(&mut self, value: CopyMode)
Sets copy_mode
to the provided enum value.
Trait Implementations§
source§impl Clone for UpdateLabelCopyModeRequest
impl Clone for UpdateLabelCopyModeRequest
source§fn clone(&self) -> UpdateLabelCopyModeRequest
fn clone(&self) -> UpdateLabelCopyModeRequest
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for UpdateLabelCopyModeRequest
impl Debug for UpdateLabelCopyModeRequest
source§impl Default for UpdateLabelCopyModeRequest
impl Default for UpdateLabelCopyModeRequest
source§impl Message for UpdateLabelCopyModeRequest
impl Message for UpdateLabelCopyModeRequest
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
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(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
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(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for UpdateLabelCopyModeRequest
impl PartialEq for UpdateLabelCopyModeRequest
source§fn eq(&self, other: &UpdateLabelCopyModeRequest) -> bool
fn eq(&self, other: &UpdateLabelCopyModeRequest) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for UpdateLabelCopyModeRequest
Auto Trait Implementations§
impl Freeze for UpdateLabelCopyModeRequest
impl RefUnwindSafe for UpdateLabelCopyModeRequest
impl Send for UpdateLabelCopyModeRequest
impl Sync for UpdateLabelCopyModeRequest
impl Unpin for UpdateLabelCopyModeRequest
impl UnwindSafe for UpdateLabelCopyModeRequest
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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