pub struct StepAccountResponse {
pub display_name: String,
pub id: Uuid,
pub name: String,
}Expand description
Readable identity of the Provider Account a step ran under.
Deliberately minimal: it never carries the credential, the secret key or any scheduling data, since it is readable by anyone who can read the run.
§Examples
use ironflow_api::entities::StepAccountResponse;
use uuid::Uuid;
let account = StepAccountResponse {
id: Uuid::now_v7(),
name: "perso".to_string(),
display_name: "Compte perso".to_string(),
};
assert_eq!(account.name, "perso");JSON schema
{
"description": "Readable identity of the Provider Account a step ran under.\n\nDeliberately minimal: it never carries the credential, the secret key or\nany scheduling data, since it is readable by anyone who can read the run.\n\n# Examples\n\n```\nuse ironflow_api::entities::StepAccountResponse;\nuse uuid::Uuid;\n\nlet account = StepAccountResponse {\n id: Uuid::now_v7(),\n name: \"perso\".to_string(),\n display_name: \"Compte perso\".to_string(),\n};\nassert_eq!(account.name, \"perso\");\n```",
"type": "object",
"required": [
"display_name",
"id",
"name"
],
"properties": {
"display_name": {
"description": "Human-readable name.",
"type": "string"
},
"id": {
"description": "Account ID.",
"type": "string",
"format": "uuid"
},
"name": {
"description": "Unique slug.",
"type": "string"
}
}
}
```ignore
</details>Fields§
§display_name: StringHuman-readable name.
id: UuidAccount ID.
name: StringUnique slug.
Implementations§
Source§impl StepAccountResponse
impl StepAccountResponse
pub fn builder() -> StepAccountResponse
Trait Implementations§
Source§impl Clone for StepAccountResponse
impl Clone for StepAccountResponse
Source§impl Debug for StepAccountResponse
impl Debug for StepAccountResponse
Source§impl<'de> Deserialize<'de> for StepAccountResponse
impl<'de> Deserialize<'de> for StepAccountResponse
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
Source§impl From<StepAccountResponse> for StepAccountResponse
impl From<StepAccountResponse> for StepAccountResponse
Source§fn from(value: StepAccountResponse) -> Self
fn from(value: StepAccountResponse) -> Self
Converts to this type from the input type.
Source§impl Serialize for StepAccountResponse
impl Serialize for StepAccountResponse
Source§impl TryFrom<StepAccountResponse> for StepAccountResponse
impl TryFrom<StepAccountResponse> for StepAccountResponse
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: StepAccountResponse) -> Result<Self, ConversionError>
fn try_from(value: StepAccountResponse) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for StepAccountResponse
impl RefUnwindSafe for StepAccountResponse
impl Send for StepAccountResponse
impl Sync for StepAccountResponse
impl Unpin for StepAccountResponse
impl UnsafeUnpin for StepAccountResponse
impl UnwindSafe for StepAccountResponse
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