Struct trezor_client::protos::messages_management::Features
source · pub struct Features {
pub capabilities: Vec<Features_Capability>,
pub unknown_fields: UnknownFields,
pub cached_size: CachedSize,
/* private fields */
}
Fields
capabilities: Vec<Features_Capability>
unknown_fields: UnknownFields
cached_size: CachedSize
Implementations
sourceimpl Features
impl Features
pub fn new() -> Features
pub fn get_vendor(&self) -> &str
pub fn clear_vendor(&mut self)
pub fn has_vendor(&self) -> bool
pub fn set_vendor(&mut self, v: String)
pub fn mut_vendor(&mut self) -> &mut String
pub fn take_vendor(&mut self) -> String
pub fn get_major_version(&self) -> u32
pub fn clear_major_version(&mut self)
pub fn has_major_version(&self) -> bool
pub fn set_major_version(&mut self, v: u32)
pub fn get_minor_version(&self) -> u32
pub fn clear_minor_version(&mut self)
pub fn has_minor_version(&self) -> bool
pub fn set_minor_version(&mut self, v: u32)
pub fn get_patch_version(&self) -> u32
pub fn clear_patch_version(&mut self)
pub fn has_patch_version(&self) -> bool
pub fn set_patch_version(&mut self, v: u32)
pub fn get_bootloader_mode(&self) -> bool
pub fn clear_bootloader_mode(&mut self)
pub fn has_bootloader_mode(&self) -> bool
pub fn set_bootloader_mode(&mut self, v: bool)
pub fn get_device_id(&self) -> &str
pub fn clear_device_id(&mut self)
pub fn has_device_id(&self) -> bool
pub fn set_device_id(&mut self, v: String)
pub fn mut_device_id(&mut self) -> &mut String
pub fn take_device_id(&mut self) -> String
pub fn get_pin_protection(&self) -> bool
pub fn clear_pin_protection(&mut self)
pub fn has_pin_protection(&self) -> bool
pub fn set_pin_protection(&mut self, v: bool)
pub fn get_passphrase_protection(&self) -> bool
pub fn clear_passphrase_protection(&mut self)
pub fn has_passphrase_protection(&self) -> bool
pub fn set_passphrase_protection(&mut self, v: bool)
pub fn get_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 get_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 get_initialized(&self) -> bool
pub fn clear_initialized(&mut self)
pub fn has_initialized(&self) -> bool
pub fn set_initialized(&mut self, v: bool)
pub fn get_revision(&self) -> &[u8] ⓘ
pub fn clear_revision(&mut self)
pub fn has_revision(&self) -> bool
pub fn set_revision(&mut self, v: Vec<u8>)
pub fn mut_revision(&mut self) -> &mut Vec<u8>
pub fn take_revision(&mut self) -> Vec<u8>
pub fn get_bootloader_hash(&self) -> &[u8] ⓘ
pub fn clear_bootloader_hash(&mut self)
pub fn has_bootloader_hash(&self) -> bool
pub fn set_bootloader_hash(&mut self, v: Vec<u8>)
pub fn mut_bootloader_hash(&mut self) -> &mut Vec<u8>
pub fn take_bootloader_hash(&mut self) -> Vec<u8>
pub fn get_imported(&self) -> bool
pub fn clear_imported(&mut self)
pub fn has_imported(&self) -> bool
pub fn set_imported(&mut self, v: bool)
pub fn get_unlocked(&self) -> bool
pub fn clear_unlocked(&mut self)
pub fn has_unlocked(&self) -> bool
pub fn set_unlocked(&mut self, v: bool)
pub fn get__passphrase_cached(&self) -> bool
pub fn clear__passphrase_cached(&mut self)
pub fn has__passphrase_cached(&self) -> bool
pub fn set__passphrase_cached(&mut self, v: bool)
pub fn get_firmware_present(&self) -> bool
pub fn clear_firmware_present(&mut self)
pub fn has_firmware_present(&self) -> bool
pub fn set_firmware_present(&mut self, v: bool)
pub fn get_needs_backup(&self) -> bool
pub fn clear_needs_backup(&mut self)
pub fn has_needs_backup(&self) -> bool
pub fn set_needs_backup(&mut self, v: bool)
pub fn get_flags(&self) -> u32
pub fn clear_flags(&mut self)
pub fn has_flags(&self) -> bool
pub fn set_flags(&mut self, v: u32)
pub fn get_model(&self) -> &str
pub fn clear_model(&mut self)
pub fn has_model(&self) -> bool
pub fn set_model(&mut self, v: String)
pub fn mut_model(&mut self) -> &mut String
pub fn take_model(&mut self) -> String
pub fn get_fw_major(&self) -> u32
pub fn clear_fw_major(&mut self)
pub fn has_fw_major(&self) -> bool
pub fn set_fw_major(&mut self, v: u32)
pub fn get_fw_minor(&self) -> u32
pub fn clear_fw_minor(&mut self)
pub fn has_fw_minor(&self) -> bool
pub fn set_fw_minor(&mut self, v: u32)
pub fn get_fw_patch(&self) -> u32
pub fn clear_fw_patch(&mut self)
pub fn has_fw_patch(&self) -> bool
pub fn set_fw_patch(&mut self, v: u32)
pub fn get_fw_vendor(&self) -> &str
pub fn clear_fw_vendor(&mut self)
pub fn has_fw_vendor(&self) -> bool
pub fn set_fw_vendor(&mut self, v: String)
pub fn mut_fw_vendor(&mut self) -> &mut String
pub fn take_fw_vendor(&mut self) -> String
pub fn get_fw_vendor_keys(&self) -> &[u8] ⓘ
pub fn clear_fw_vendor_keys(&mut self)
pub fn has_fw_vendor_keys(&self) -> bool
pub fn set_fw_vendor_keys(&mut self, v: Vec<u8>)
pub fn mut_fw_vendor_keys(&mut self) -> &mut Vec<u8>
pub fn take_fw_vendor_keys(&mut self) -> Vec<u8>
pub fn get_unfinished_backup(&self) -> bool
pub fn clear_unfinished_backup(&mut self)
pub fn has_unfinished_backup(&self) -> bool
pub fn set_unfinished_backup(&mut self, v: bool)
pub fn get_no_backup(&self) -> bool
pub fn clear_no_backup(&mut self)
pub fn has_no_backup(&self) -> bool
pub fn set_no_backup(&mut self, v: bool)
pub fn get_recovery_mode(&self) -> bool
pub fn clear_recovery_mode(&mut self)
pub fn has_recovery_mode(&self) -> bool
pub fn set_recovery_mode(&mut self, v: bool)
pub fn get_capabilities(&self) -> &[Features_Capability]
pub fn clear_capabilities(&mut self)
pub fn set_capabilities(&mut self, v: Vec<Features_Capability>)
pub fn mut_capabilities(&mut self) -> &mut Vec<Features_Capability>
pub fn take_capabilities(&mut self) -> Vec<Features_Capability>
pub fn get_backup_type(&self) -> BackupType
pub fn clear_backup_type(&mut self)
pub fn has_backup_type(&self) -> bool
pub fn set_backup_type(&mut self, v: BackupType)
pub fn get_sd_card_present(&self) -> bool
pub fn clear_sd_card_present(&mut self)
pub fn has_sd_card_present(&self) -> bool
pub fn set_sd_card_present(&mut self, v: bool)
pub fn get_sd_protection(&self) -> bool
pub fn clear_sd_protection(&mut self)
pub fn has_sd_protection(&self) -> bool
pub fn set_sd_protection(&mut self, v: bool)
pub fn get_wipe_code_protection(&self) -> bool
pub fn clear_wipe_code_protection(&mut self)
pub fn has_wipe_code_protection(&self) -> bool
pub fn set_wipe_code_protection(&mut self, v: bool)
pub fn get_session_id(&self) -> &[u8] ⓘ
pub fn clear_session_id(&mut self)
pub fn has_session_id(&self) -> bool
pub fn set_session_id(&mut self, v: Vec<u8>)
pub fn mut_session_id(&mut self) -> &mut Vec<u8>
pub fn take_session_id(&mut self) -> Vec<u8>
pub fn get_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 get_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 get_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 get_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 get_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)
Trait Implementations
sourceimpl Message for Features
impl Message for Features
sourcefn is_initialized(&self) -> bool
fn is_initialized(&self) -> bool
True iff all required fields are initialized.
Always returns
true
for protobuf 3. Read moresourcefn merge_from(&mut self, is: &mut CodedInputStream<'_>) -> ProtobufResult<()>
fn merge_from(&mut self, is: &mut CodedInputStream<'_>) -> ProtobufResult<()>
Update this message object with fields read from given stream.
sourcefn compute_size(&self) -> u32
fn compute_size(&self) -> u32
Compute and cache size of this message and all nested messages
sourcefn write_to_with_cached_sizes(
&self,
os: &mut CodedOutputStream<'_>
) -> ProtobufResult<()>
fn write_to_with_cached_sizes(
&self,
os: &mut CodedOutputStream<'_>
) -> ProtobufResult<()>
Write message to the stream. Read more
sourcefn get_cached_size(&self) -> u32
fn get_cached_size(&self) -> u32
Get size previously computed by
compute_size
.sourcefn get_unknown_fields(&self) -> &UnknownFields
fn get_unknown_fields(&self) -> &UnknownFields
Get a reference to unknown fields.
sourcefn mut_unknown_fields(&mut self) -> &mut UnknownFields
fn mut_unknown_fields(&mut self) -> &mut UnknownFields
Get a mutable reference to unknown fields.
sourcefn as_any_mut(&mut self) -> &mut dyn Any
fn as_any_mut(&mut self) -> &mut dyn Any
View self as mutable
Any
.sourcefn descriptor(&self) -> &'static MessageDescriptor
fn descriptor(&self) -> &'static MessageDescriptor
Message descriptor for this message, used for reflection.
sourcefn descriptor_static() -> &'static MessageDescriptor
fn descriptor_static() -> &'static MessageDescriptor
Get message descriptor for message type. Read more
sourcefn default_instance() -> &'static Features
fn default_instance() -> &'static Features
Return a pointer to default immutable message with static lifetime. Read more
sourcefn parse_from(is: &mut CodedInputStream<'_>) -> Result<Self, ProtobufError>where
Self: Sized,
fn parse_from(is: &mut CodedInputStream<'_>) -> Result<Self, ProtobufError>where
Self: Sized,
Parse message from stream.
sourcefn write_to(&self, os: &mut CodedOutputStream<'_>) -> Result<(), ProtobufError>
fn write_to(&self, os: &mut CodedOutputStream<'_>) -> Result<(), ProtobufError>
Write the message to the stream. Read more
sourcefn write_length_delimited_to(
&self,
os: &mut CodedOutputStream<'_>
) -> Result<(), ProtobufError>
fn write_length_delimited_to(
&self,
os: &mut CodedOutputStream<'_>
) -> Result<(), ProtobufError>
Write the message to the stream prepending the message with message length
encoded as varint. Read more
sourcefn write_length_delimited_to_vec(
&self,
vec: &mut Vec<u8, Global>
) -> Result<(), ProtobufError>
fn write_length_delimited_to_vec(
&self,
vec: &mut Vec<u8, Global>
) -> Result<(), ProtobufError>
Write the message to the vec, prepend the message with message length
encoded as varint. Read more
sourcefn merge_from_bytes(&mut self, bytes: &[u8]) -> Result<(), ProtobufError>
fn merge_from_bytes(&mut self, bytes: &[u8]) -> Result<(), ProtobufError>
Update this message object with fields read from given stream.
sourcefn parse_from_reader(reader: &mut dyn Read) -> Result<Self, ProtobufError>where
Self: Sized,
fn parse_from_reader(reader: &mut dyn Read) -> Result<Self, ProtobufError>where
Self: Sized,
Parse message from reader.
Parse stops on EOF or when error encountered. Read more
sourcefn parse_from_bytes(bytes: &[u8]) -> Result<Self, ProtobufError>where
Self: Sized,
fn parse_from_bytes(bytes: &[u8]) -> Result<Self, ProtobufError>where
Self: Sized,
Parse message from byte array.
sourcefn check_initialized(&self) -> Result<(), ProtobufError>
fn check_initialized(&self) -> Result<(), ProtobufError>
Check if all required fields of this object are initialized.
sourcefn write_to_writer(&self, w: &mut dyn Write) -> Result<(), ProtobufError>
fn write_to_writer(&self, w: &mut dyn Write) -> Result<(), ProtobufError>
Write the message to the writer.
sourcefn write_to_vec(&self, v: &mut Vec<u8, Global>) -> Result<(), ProtobufError>
fn write_to_vec(&self, v: &mut Vec<u8, Global>) -> Result<(), ProtobufError>
Write the message to bytes vec.
sourcefn write_to_bytes(&self) -> Result<Vec<u8, Global>, ProtobufError>
fn write_to_bytes(&self) -> Result<Vec<u8, Global>, ProtobufError>
Write the message to bytes vec.
sourcefn write_length_delimited_to_writer(
&self,
w: &mut dyn Write
) -> Result<(), ProtobufError>
fn write_length_delimited_to_writer(
&self,
w: &mut dyn Write
) -> Result<(), ProtobufError>
Write the message to the writer, prepend the message with message length
encoded as varint. Read more
sourcefn write_length_delimited_to_bytes(
&self
) -> Result<Vec<u8, Global>, ProtobufError>
fn write_length_delimited_to_bytes(
&self
) -> Result<Vec<u8, Global>, ProtobufError>
Write the message to the bytes vec, prepend the message with message length
encoded as varint. Read more
sourceimpl ProtobufValue for Features
impl ProtobufValue for Features
sourcefn as_ref(&self) -> ReflectValueRef<'_>
fn as_ref(&self) -> ReflectValueRef<'_>
As ref
sourcefn is_non_zero(&self) -> bool
fn is_non_zero(&self) -> bool
Is value non-zero?
sourcefn as_ref_copy(&self) -> ReflectValueRef<'static>
fn as_ref_copy(&self) -> ReflectValueRef<'static>
sourceimpl TrezorMessage for Features
impl TrezorMessage for Features
fn message_type() -> MessageType
impl StructuralPartialEq for Features
Auto Trait Implementations
impl RefUnwindSafe for Features
impl Send for Features
impl Sync for Features
impl Unpin for Features
impl UnwindSafe for Features
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more