pub struct LegalDocument {
pub name: String,
pub display_name: String,
pub acceptance_required: bool,
pub current_version: String,
pub latest_version: String,
}Expand description
A legal document: every version of one kind of document, such as the Terms of Service.
Fields§
§name: StringThe document’s resource name, legalDocuments/{legal_document}, where
{legal_document} is one of terms, dpa, sla, aup,
subprocessors, toms, privacy, switching and
shared-responsibility.
display_name: StringThe document’s title, as its latest version names it, such as Terms of Service.
acceptance_required: boolWhether a customer accepts this document. A legal_document_version::ChangeClass::Material version of one
that is accepted needs a new acceptance; the other documents are
published only.
current_version: StringThe version in force today, by its resource name. Empty while the first version has not taken effect yet.
latest_version: StringThe latest version published, by its resource name: current_version,
or a version announced to take effect later.
Trait Implementations§
Source§impl Clone for LegalDocument
impl Clone for LegalDocument
Source§impl Debug for LegalDocument
impl Debug for LegalDocument
Source§impl Default for LegalDocument
impl Default for LegalDocument
Source§impl<'de> Deserialize<'de> for LegalDocument
impl<'de> Deserialize<'de> for LegalDocument
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 LegalDocument
Source§impl Hash for LegalDocument
impl Hash for LegalDocument
Source§impl Message for LegalDocument
impl Message for LegalDocument
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 LegalDocument
impl PartialEq for LegalDocument
Source§impl Serialize for LegalDocument
impl Serialize for LegalDocument
impl StructuralPartialEq for LegalDocument
Auto Trait Implementations§
impl Forget for LegalDocument
impl Freeze for LegalDocument
impl Move for LegalDocument
impl RefUnwindSafe for LegalDocument
impl Send for LegalDocument
impl Sync for LegalDocument
impl Unpin for LegalDocument
impl UnsafeUnpin for LegalDocument
impl UnwindSafe for LegalDocument
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.