pub enum HarnessWorkspaceFileContentV1 {
Utf8 {
text: String,
byte_len: u32,
},
NonUtf8 {
byte_len: u32,
},
TooLarge {
limit_bytes: u32,
},
}Variants§
Implementations§
Source§impl HarnessWorkspaceFileContentV1
impl HarnessWorkspaceFileContentV1
pub fn validate(&self) -> Result<(), HarnessOperatorApiError>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for HarnessWorkspaceFileContentV1
impl<'de> Deserialize<'de> for HarnessWorkspaceFileContentV1
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
impl Eq for HarnessWorkspaceFileContentV1
impl StructuralPartialEq for HarnessWorkspaceFileContentV1
Auto Trait Implementations§
impl Freeze for HarnessWorkspaceFileContentV1
impl RefUnwindSafe for HarnessWorkspaceFileContentV1
impl Send for HarnessWorkspaceFileContentV1
impl Sync for HarnessWorkspaceFileContentV1
impl Unpin for HarnessWorkspaceFileContentV1
impl UnsafeUnpin for HarnessWorkspaceFileContentV1
impl UnwindSafe for HarnessWorkspaceFileContentV1
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