pub struct Document {Show 24 fields
pub id: Option<i64>,
pub uri: String,
pub size_bytes: Option<i64>,
pub template_id: Option<i64>,
pub identifier: Option<String>,
pub valid_from: Option<String>,
pub valid_to: Option<String>,
pub user_id: Option<String>,
pub herd_id: Option<i64>,
pub device_id: Option<i64>,
pub product_id: Option<i64>,
pub operating_context_id: Option<i64>,
pub related_herd_id: Option<i64>,
pub is_approved: bool,
pub approved_by: Option<String>,
pub approved_at: Option<String>,
pub created_by: Option<String>,
pub created_at: Option<String>,
pub updated_by: Option<String>,
pub updated_at: Option<String>,
pub lifecycle: EntityLifecycle,
pub lifecycle_changed_at: Option<String>,
pub lifecycle_changed_by: Option<String>,
pub lifecycle_reason: Option<String>,
}Expand description
A compliance document (public.documents).
Fields§
§id: Option<i64>§uri: String§size_bytes: Option<i64>§template_id: Option<i64>§identifier: Option<String>§valid_from: Option<String>§valid_to: Option<String>§user_id: Option<String>§herd_id: Option<i64>§device_id: Option<i64>§product_id: Option<i64>§operating_context_id: Option<i64>§is_approved: bool§approved_by: Option<String>§approved_at: Option<String>§created_by: Option<String>§created_at: Option<String>§updated_by: Option<String>§updated_at: Option<String>§lifecycle: EntityLifecycle§lifecycle_changed_at: Option<String>§lifecycle_changed_by: Option<String>§lifecycle_reason: Option<String>Trait Implementations§
Source§impl<'de> Deserialize<'de> for Document
impl<'de> Deserialize<'de> for Document
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 StructuralPartialEq for Document
Auto Trait Implementations§
impl Freeze for Document
impl RefUnwindSafe for Document
impl Send for Document
impl Sync for Document
impl Unpin for Document
impl UnsafeUnpin for Document
impl UnwindSafe for Document
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more