pub struct WorkspaceMetadata {
pub project_name: String,
pub session_id: Option<String>,
pub created_at: Option<u64>,
}Available on crate feature
code only.Expand description
Metadata about a workspace project and execution session.
§Example
use adk_code::WorkspaceMetadata;
let meta = WorkspaceMetadata {
project_name: "demo".to_string(),
session_id: Some("sess-1".to_string()),
created_at: Some(1719000000),
};
assert_eq!(meta.project_name, "demo");Fields§
§project_name: StringHuman-readable project name.
session_id: Option<String>Optional session ID for execution and telemetry correlation.
created_at: Option<u64>Optional creation timestamp (Unix epoch seconds).
Trait Implementations§
Source§impl Clone for WorkspaceMetadata
impl Clone for WorkspaceMetadata
Source§fn clone(&self) -> WorkspaceMetadata
fn clone(&self) -> WorkspaceMetadata
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 WorkspaceMetadata
impl Debug for WorkspaceMetadata
Source§impl<'de> Deserialize<'de> for WorkspaceMetadata
impl<'de> Deserialize<'de> for WorkspaceMetadata
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<WorkspaceMetadata, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<WorkspaceMetadata, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for WorkspaceMetadata
impl PartialEq for WorkspaceMetadata
Source§fn eq(&self, other: &WorkspaceMetadata) -> bool
fn eq(&self, other: &WorkspaceMetadata) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for WorkspaceMetadata
impl Serialize for WorkspaceMetadata
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for WorkspaceMetadata
impl StructuralPartialEq for WorkspaceMetadata
Auto Trait Implementations§
impl Freeze for WorkspaceMetadata
impl RefUnwindSafe for WorkspaceMetadata
impl Send for WorkspaceMetadata
impl Sync for WorkspaceMetadata
impl Unpin for WorkspaceMetadata
impl UnsafeUnpin for WorkspaceMetadata
impl UnwindSafe for WorkspaceMetadata
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,
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
Compare self to
key and return true if they are equal.