pub struct LegalDocumentVersion {
pub name: String,
pub display_name: String,
pub effective_date: Option<Date>,
pub change_class: i32,
pub change_summary: String,
pub sha256: String,
pub markdown: String,
pub html: String,
pub uri: String,
pub pdf_uri: String,
}Expand description
One published version of a legal document. It never changes once published.
Fields§
§name: StringThe version’s resource name,
legalDocuments/{legal_document}/versions/{version}, where {version}
is YYYY-MM, or YYYY-MM-2, YYYY-MM-3 and so on for another version
in the same month.
display_name: StringThe version’s title, such as Terms of Service.
effective_date: Option<Date>The day the version takes effect. It applies from that day until the next version of the document takes effect.
change_class: i32What the version changes.
change_summary: StringA plain-language summary of what changed, as the acceptance dialog and the announcement show it.
sha256: StringThe SHA-256 of markdown, in lowercase hexadecimal: what identifies the
version, and what an acceptance of it records.
markdown: StringThe version’s source, Markdown with its YAML front matter, exactly as
sha256 is computed over it.
html: StringThe version’s text as an HTML fragment, without its title: safe to embed
as it is. A reference to another legal document links the version of it
in force on effective_date.
uri: StringWhere the version is published on the web, under a URL that never
changes, such as <https://origincloud.eu/legal/terms/2026-12.>
pdf_uri: StringWhere the version’s PDF is downloaded from (DownloadLegalDocumentVersion).
Implementations§
Source§impl LegalDocumentVersion
impl LegalDocumentVersion
Sourcepub fn change_class(&self) -> ChangeClass
pub fn change_class(&self) -> ChangeClass
Returns the enum value of change_class, or the default if the field is set to an invalid enum value.
Sourcepub fn set_change_class(&mut self, value: ChangeClass)
pub fn set_change_class(&mut self, value: ChangeClass)
Sets change_class to the provided enum value.
Trait Implementations§
Source§impl Clone for LegalDocumentVersion
impl Clone for LegalDocumentVersion
Source§impl Debug for LegalDocumentVersion
impl Debug for LegalDocumentVersion
Source§impl Default for LegalDocumentVersion
impl Default for LegalDocumentVersion
Source§impl<'de> Deserialize<'de> for LegalDocumentVersion
impl<'de> Deserialize<'de> for LegalDocumentVersion
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>,
impl Eq for LegalDocumentVersion
Source§impl Hash for LegalDocumentVersion
impl Hash for LegalDocumentVersion
Source§impl Message for LegalDocumentVersion
impl Message for LegalDocumentVersion
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.Source§impl PartialEq for LegalDocumentVersion
impl PartialEq for LegalDocumentVersion
Source§impl Serialize for LegalDocumentVersion
impl Serialize for LegalDocumentVersion
impl StructuralPartialEq for LegalDocumentVersion
Auto Trait Implementations§
impl Forget for LegalDocumentVersion
impl Freeze for LegalDocumentVersion
impl Move for LegalDocumentVersion
impl RefUnwindSafe for LegalDocumentVersion
impl Send for LegalDocumentVersion
impl Sync for LegalDocumentVersion
impl Unpin for LegalDocumentVersion
impl UnsafeUnpin for LegalDocumentVersion
impl UnwindSafe for LegalDocumentVersion
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
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.