Struct google_cloudtrace2::api::TruncatableString
source · pub struct TruncatableString {
pub truncated_byte_count: Option<i32>,
pub value: Option<String>,
}Expand description
Represents a string that might be shortened to a specified length.
This type is not used in any activity, and only used as part of another schema.
Fields§
§truncated_byte_count: Option<i32>The number of bytes removed from the original string. If this value is 0, then the string was not shortened.
value: Option<String>The shortened string. For example, if the original string is 500 bytes long and the limit of the string is 128 bytes, then value contains the first 128 bytes of the 500-byte string. Truncation always happens on a UTF8 character boundary. If there are multi-byte characters in the string, then the length of the shortened string might be less than the size limit.
Trait Implementations§
source§impl Clone for TruncatableString
impl Clone for TruncatableString
source§fn clone(&self) -> TruncatableString
fn clone(&self) -> TruncatableString
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 TruncatableString
impl Debug for TruncatableString
source§impl Default for TruncatableString
impl Default for TruncatableString
source§fn default() -> TruncatableString
fn default() -> TruncatableString
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for TruncatableString
impl<'de> Deserialize<'de> for TruncatableString
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more