Struct trezor_client::protos::ApplySettings
source · pub struct ApplySettings {Show 13 fields
pub language: Option<String>,
pub label: Option<String>,
pub use_passphrase: Option<bool>,
pub homescreen: Option<Vec<u8>>,
pub _passphrase_source: Option<u32>,
pub auto_lock_delay_ms: Option<u32>,
pub display_rotation: Option<u32>,
pub passphrase_always_on_device: Option<bool>,
pub safety_checks: Option<EnumOrUnknown<SafetyCheckLevel>>,
pub experimental_features: Option<bool>,
pub hide_passphrase_from_host: Option<bool>,
pub haptic_feedback: Option<bool>,
pub special_fields: SpecialFields,
}
Fields§
§language: Option<String>
§label: Option<String>
§use_passphrase: Option<bool>
§homescreen: Option<Vec<u8>>
§_passphrase_source: Option<u32>
§auto_lock_delay_ms: Option<u32>
§display_rotation: Option<u32>
§passphrase_always_on_device: Option<bool>
§safety_checks: Option<EnumOrUnknown<SafetyCheckLevel>>
§experimental_features: Option<bool>
§hide_passphrase_from_host: Option<bool>
§haptic_feedback: Option<bool>
§special_fields: SpecialFields
Implementations§
source§impl ApplySettings
impl ApplySettings
pub fn new() -> ApplySettings
pub fn language(&self) -> &str
pub fn clear_language(&mut self)
pub fn has_language(&self) -> bool
pub fn set_language(&mut self, v: String)
pub fn mut_language(&mut self) -> &mut String
pub fn take_language(&mut self) -> String
pub fn label(&self) -> &str
pub fn clear_label(&mut self)
pub fn has_label(&self) -> bool
pub fn set_label(&mut self, v: String)
pub fn mut_label(&mut self) -> &mut String
pub fn take_label(&mut self) -> String
pub fn use_passphrase(&self) -> bool
pub fn clear_use_passphrase(&mut self)
pub fn has_use_passphrase(&self) -> bool
pub fn set_use_passphrase(&mut self, v: bool)
pub fn homescreen(&self) -> &[u8] ⓘ
pub fn clear_homescreen(&mut self)
pub fn has_homescreen(&self) -> bool
pub fn set_homescreen(&mut self, v: Vec<u8>)
pub fn mut_homescreen(&mut self) -> &mut Vec<u8>
pub fn take_homescreen(&mut self) -> Vec<u8>
pub fn _passphrase_source(&self) -> u32
pub fn clear__passphrase_source(&mut self)
pub fn has__passphrase_source(&self) -> bool
pub fn set__passphrase_source(&mut self, v: u32)
pub fn auto_lock_delay_ms(&self) -> u32
pub fn clear_auto_lock_delay_ms(&mut self)
pub fn has_auto_lock_delay_ms(&self) -> bool
pub fn set_auto_lock_delay_ms(&mut self, v: u32)
pub fn display_rotation(&self) -> u32
pub fn clear_display_rotation(&mut self)
pub fn has_display_rotation(&self) -> bool
pub fn set_display_rotation(&mut self, v: u32)
pub fn passphrase_always_on_device(&self) -> bool
pub fn clear_passphrase_always_on_device(&mut self)
pub fn has_passphrase_always_on_device(&self) -> bool
pub fn set_passphrase_always_on_device(&mut self, v: bool)
pub fn safety_checks(&self) -> SafetyCheckLevel
pub fn clear_safety_checks(&mut self)
pub fn has_safety_checks(&self) -> bool
pub fn set_safety_checks(&mut self, v: SafetyCheckLevel)
pub fn experimental_features(&self) -> bool
pub fn clear_experimental_features(&mut self)
pub fn has_experimental_features(&self) -> bool
pub fn set_experimental_features(&mut self, v: bool)
pub fn hide_passphrase_from_host(&self) -> bool
pub fn clear_hide_passphrase_from_host(&mut self)
pub fn has_hide_passphrase_from_host(&self) -> bool
pub fn set_hide_passphrase_from_host(&mut self, v: bool)
pub fn haptic_feedback(&self) -> bool
pub fn clear_haptic_feedback(&mut self)
pub fn has_haptic_feedback(&self) -> bool
pub fn set_haptic_feedback(&mut self, v: bool)
Trait Implementations§
source§impl Clone for ApplySettings
impl Clone for ApplySettings
source§fn clone(&self) -> ApplySettings
fn clone(&self) -> ApplySettings
Returns a copy of the value. Read more
1.0.0 · 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 ApplySettings
impl Debug for ApplySettings
source§impl<'a> Default for &'a ApplySettings
impl<'a> Default for &'a ApplySettings
source§fn default() -> &'a ApplySettings
fn default() -> &'a ApplySettings
Returns the “default value” for a type. Read more
source§impl Default for ApplySettings
impl Default for ApplySettings
source§fn default() -> ApplySettings
fn default() -> ApplySettings
Returns the “default value” for a type. Read more
source§impl Display for ApplySettings
impl Display for ApplySettings
source§impl Message for ApplySettings
impl Message for ApplySettings
source§const NAME: &'static str = "ApplySettings"
const NAME: &'static str = "ApplySettings"
Message name as specified in
.proto
file. Read moresource§fn is_initialized(&self) -> bool
fn is_initialized(&self) -> bool
True iff all required fields are initialized.
Always returns
true
for protobuf 3.source§fn merge_from(&mut self, is: &mut CodedInputStream<'_>) -> Result<()>
fn merge_from(&mut self, is: &mut CodedInputStream<'_>) -> Result<()>
Update this message object with fields read from given stream.
source§fn compute_size(&self) -> u64
fn compute_size(&self) -> u64
Compute and cache size of this message and all nested messages. Read more
source§fn write_to_with_cached_sizes(
&self,
os: &mut CodedOutputStream<'_>,
) -> Result<()>
fn write_to_with_cached_sizes( &self, os: &mut CodedOutputStream<'_>, ) -> Result<()>
Write message to the stream. Read more
source§fn special_fields(&self) -> &SpecialFields
fn special_fields(&self) -> &SpecialFields
Special fields (unknown fields and cached size).
source§fn mut_special_fields(&mut self) -> &mut SpecialFields
fn mut_special_fields(&mut self) -> &mut SpecialFields
Special fields (unknown fields and cached size).
source§fn new() -> ApplySettings
fn new() -> ApplySettings
Create an empty message object. Read more
source§fn default_instance() -> &'static ApplySettings
fn default_instance() -> &'static ApplySettings
Return a pointer to default immutable message with static lifetime. Read more
source§fn parse_from(is: &mut CodedInputStream<'_>) -> Result<Self, Error>
fn parse_from(is: &mut CodedInputStream<'_>) -> Result<Self, Error>
Parse message from stream.
source§fn cached_size(&self) -> u32
fn cached_size(&self) -> u32
Get size previously computed by
compute_size
. Read moresource§fn write_to(&self, os: &mut CodedOutputStream<'_>) -> Result<(), Error>
fn write_to(&self, os: &mut CodedOutputStream<'_>) -> Result<(), Error>
Write the message to the stream. Read more
source§fn write_length_delimited_to(
&self,
os: &mut CodedOutputStream<'_>,
) -> Result<(), Error>
fn write_length_delimited_to( &self, os: &mut CodedOutputStream<'_>, ) -> Result<(), Error>
Write the message to the stream prepending the message with message length
encoded as varint.
source§fn write_length_delimited_to_vec(&self, vec: &mut Vec<u8>) -> Result<(), Error>
fn write_length_delimited_to_vec(&self, vec: &mut Vec<u8>) -> Result<(), Error>
Write the message to the vec, prepend the message with message length
encoded as varint.
source§fn merge_from_bytes(&mut self, bytes: &[u8]) -> Result<(), Error>
fn merge_from_bytes(&mut self, bytes: &[u8]) -> Result<(), Error>
Update this message object with fields read from given stream.
source§fn parse_from_reader(reader: &mut dyn Read) -> Result<Self, Error>
fn parse_from_reader(reader: &mut dyn Read) -> Result<Self, Error>
Parse message from reader.
Parse stops on EOF or when error encountered.
source§fn check_initialized(&self) -> Result<(), Error>
fn check_initialized(&self) -> Result<(), Error>
Check if all required fields of this object are initialized.
source§fn write_to_writer(&self, w: &mut dyn Write) -> Result<(), Error>
fn write_to_writer(&self, w: &mut dyn Write) -> Result<(), Error>
Write the message to the writer.
source§fn write_length_delimited_to_writer(
&self,
w: &mut dyn Write,
) -> Result<(), Error>
fn write_length_delimited_to_writer( &self, w: &mut dyn Write, ) -> Result<(), Error>
Write the message to the writer, prepend the message with message length
encoded as varint.
source§fn write_length_delimited_to_bytes(&self) -> Result<Vec<u8>, Error>
fn write_length_delimited_to_bytes(&self) -> Result<Vec<u8>, Error>
Write the message to the bytes vec, prepend the message with message length
encoded as varint.
source§fn unknown_fields(&self) -> &UnknownFields
fn unknown_fields(&self) -> &UnknownFields
Get a reference to unknown fields.
source§fn mut_unknown_fields(&mut self) -> &mut UnknownFields
fn mut_unknown_fields(&mut self) -> &mut UnknownFields
Get a mutable reference to unknown fields.
source§impl MessageFull for ApplySettings
impl MessageFull for ApplySettings
source§fn descriptor() -> MessageDescriptor
fn descriptor() -> MessageDescriptor
Get message descriptor for message type. Read more
source§fn reflect_eq(&self, other: &Self, mode: &ReflectEqMode) -> bool
fn reflect_eq(&self, other: &Self, mode: &ReflectEqMode) -> bool
Reflective equality. Read more
source§impl PartialEq for ApplySettings
impl PartialEq for ApplySettings
source§fn eq(&self, other: &ApplySettings) -> bool
fn eq(&self, other: &ApplySettings) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl ProtobufValue for ApplySettings
impl ProtobufValue for ApplySettings
§type RuntimeType = RuntimeTypeMessage<ApplySettings>
type RuntimeType = RuntimeTypeMessage<ApplySettings>
Actual implementation of type properties.
§impl TrezorMessage for ApplySettings
impl TrezorMessage for ApplySettings
const MESSAGE_TYPE: MessageType = MessageType_ApplySettings
source§fn message_type() -> MessageType
fn message_type() -> MessageType
👎Deprecated: Use
MESSAGE_TYPE
insteadimpl StructuralPartialEq for ApplySettings
Auto Trait Implementations§
impl !Freeze for ApplySettings
impl RefUnwindSafe for ApplySettings
impl Send for ApplySettings
impl Sync for ApplySettings
impl Unpin for ApplySettings
impl UnwindSafe for ApplySettings
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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<M> MessageDyn for Mwhere
M: MessageFull,
impl<M> MessageDyn for Mwhere
M: MessageFull,
source§fn descriptor_dyn(&self) -> MessageDescriptor
fn descriptor_dyn(&self) -> MessageDescriptor
Message descriptor for this message, used for reflection.
source§fn merge_from_dyn(&mut self, is: &mut CodedInputStream<'_>) -> Result<(), Error>
fn merge_from_dyn(&mut self, is: &mut CodedInputStream<'_>) -> Result<(), Error>
Update this message fields with contents of given stream.
source§fn write_to_with_cached_sizes_dyn(
&self,
os: &mut CodedOutputStream<'_>,
) -> Result<(), Error>
fn write_to_with_cached_sizes_dyn( &self, os: &mut CodedOutputStream<'_>, ) -> Result<(), Error>
Write the message.
source§fn compute_size_dyn(&self) -> u64
fn compute_size_dyn(&self) -> u64
Compute (and cache) the message size.
source§fn is_initialized_dyn(&self) -> bool
fn is_initialized_dyn(&self) -> bool
True iff all required fields are initialized.
Always returns
true
for protobuf 3.source§fn special_fields_dyn(&self) -> &SpecialFields
fn special_fields_dyn(&self) -> &SpecialFields
Get a reference to special fields.
source§fn mut_special_fields_dyn(&mut self) -> &mut SpecialFields
fn mut_special_fields_dyn(&mut self) -> &mut SpecialFields
Get a mutable reference to special fields.