pub struct CreateSessionRequestBuilder { /* private fields */ }Available on crate feature
managed-agents-preview only.Expand description
Builder for CreateSessionRequest.
Implementations§
Source§impl CreateSessionRequestBuilder
impl CreateSessionRequestBuilder
Sourcepub fn environment_id(self, id: impl Into<String>) -> Self
pub fn environment_id(self, id: impl Into<String>) -> Self
Set the environment. Required.
Sourcepub fn vault_id(self, id: impl Into<String>) -> Self
pub fn vault_id(self, id: impl Into<String>) -> Self
Append a vault ID for credential resolution.
Sourcepub fn resource(self, resource: SessionResource) -> Self
pub fn resource(self, resource: SessionResource) -> Self
Append a typed resource (file / github_repository /
memory_store). Build via the constructors in
crate::managed_agents::resources.
Sourcepub fn build(self) -> Result<CreateSessionRequest>
pub fn build(self) -> Result<CreateSessionRequest>
Trait Implementations§
Source§impl Debug for CreateSessionRequestBuilder
impl Debug for CreateSessionRequestBuilder
Source§impl Default for CreateSessionRequestBuilder
impl Default for CreateSessionRequestBuilder
Source§fn default() -> CreateSessionRequestBuilder
fn default() -> CreateSessionRequestBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CreateSessionRequestBuilder
impl RefUnwindSafe for CreateSessionRequestBuilder
impl Send for CreateSessionRequestBuilder
impl Sync for CreateSessionRequestBuilder
impl Unpin for CreateSessionRequestBuilder
impl UnsafeUnpin for CreateSessionRequestBuilder
impl UnwindSafe for CreateSessionRequestBuilder
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> 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 moreCreates a shared type from an unshared type.